Export (0) Print
Expand All
Expand Minimize

Compiler Error CS0143

The type 'class' has no constructors defined

There is no appropriate constructor available.

The following sample generates CS0143:

// CS0143.cs
class nmc
{
   static public void Main ()
   {
      double d = new double(4.5);   // CS0143
   }
}
Show:
© 2014 Microsoft