Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
'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(){}
};