Export (0) Print
Expand All
Expand Minimize

Compiler Warning (level 4) CS0028

Visual Studio .NET 2003

'function declaration' has the wrong signature to be an entry point

The method declaration for Main was invalid.

The following sample generates CS0028:

// CS0028.cs
// compile with: /W:4 /warnaserror
public class a
   public static void Main(int i)   // CS0028
   // try the following line instead
   // public static void Main()
© 2014 Microsoft