הערה
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות להיכנס או לשנות מדריכי כתובות.
הגישה לדף זה מחייבת הרשאה. באפשרותך לנסות לשנות מדריכי כתובות.
'instance' : you cannot embed an instance of a reference type, 'type', in a value-type
Remarks
A value type cannot contain an instance of a reference type.
For more information, see C++ Stack Semantics for Reference Types.
Example
The following example generates C3075.
// C3075.cpp
// compile with: /clr /c
ref struct U {};
value struct X {
U y; // C3075
};
ref struct Y {
U y; // OK
};