Export (0) Print
Expand All
Expand Minimize

Compiler Error C3050

Error Message

'type1' : a ref class cannot inherit from 'type1'

System::ValueType cannot be a base class for a reference type.

The following sample generates C3050:

// C3050.cpp
// compile with: /clr /LD
ref struct X : System::ValueType {};   // C3050
ref struct Y {};   // OK

Community Additions

© 2014 Microsoft