Merk
Tilgang til denne siden krever autorisasjon. Du kan prøve å logge på eller endre kataloger.
Tilgang til denne siden krever autorisasjon. Du kan prøve å endre kataloger.
'type' : an interface cannot have an instance constructor
Remarks
A CLR interface cannot have an instance constructor. A static constructor is allowed.
Example
The following example 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(){}
};