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.
'constructor' : a static constructor must be parameterless
A static constructor cannot be declared with one or more parameters. For more information, see Constructors.
The following sample generates CS0132:
// CS0132.cs
namespace MyNamespace
{
public class MyClass
{
public MyClass(int i)
{
}
}
public class MyClass2 : MyClass
{
static MyClass2(int i) // CS0132
{
}
}
}
.NET feedback
.NET is an open source project. Select a link to provide feedback: