Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C3283

Error Message

'type' : an interface cannot have an instance constructor

A CLR interface cannot have an instance constructor. A static constructor is allowed.

The following sample generates C3283:

// C3283.cpp
// compile with: /clr
interface class I {
   I();   // C3283
};

Possible resolution:

// C3283b.cpp
// compile with: /clr /c
interface class I {
   static I(){}
};

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.