Kompilatorfel C3283

"type" : ett gränssnitt kan inte ha en instanskonstruktor

Anmärkningar

Ett CLR-gränssnitt kan inte ha en instanskonstruktor. En statisk konstruktor tillåts.

Example

I följande exempel genereras C3283:

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

Möjlig lösning:

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