managed objects in native classes?

  • Thread starter Thread starter dragonslayer008
  • Start date Start date
D

dragonslayer008

Hi,

I know a managed class can have an unmanaged pointer to a native
object, but is it legal for a native class to have a member reference
to a managed class?
 
Yes
class CppClass {
public:
gcroot<String^> str; // can use str as if it were String^
CppClass() {}
};
 
Back
Top