Sdílet prostřednictvím


Chyba kompilátoru C3283

'type' : rozhraní nemůže mít konstruktor instance

Poznámky

Rozhraní CLR nemůže mít konstruktor instance. Je povolen statický konstruktor.

Example

Následující příklad vygeneruje C3283:

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

Možné řešení:

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