Class, struct, or interface method must have a return type
A method that is declared in a class, struct, or interface must have an explicit return type.
The following sample generates CS1520:
public class x { f7(){} // CS1520, needs return type // try the following definition /* void f7(){ } */ public static void Main() { } }