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
{
}
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.