Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'identifier' : an entry point cannot be generic or in a generic type
The entry point was found in a generic type. To remove this warning, implement Main in a non-generic class or struct.
// CS0402.cs
// compile with: /W:4
class C<T>
{
public static void Main() // CS0402
{
}
}
class CMain
{
public static void Main() {}
}