Compiler Error C3050
'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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for