Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Error CS0143
Collapse the table of content
Expand the table of content

Compiler Error CS0143 

Error Message

The type 'class' has no constructors defined

There is no appropriate constructor available.

The following sample generates CS0143:

// CS0143.cs
class MyClass
{
   static public void Main ()
   {
      double d = new double(4.5);   // CS0143
   }
}

Community Additions

ADD
Show:
© 2015 Microsoft