Hi,
I have a dotnet object (implemented in mc++ and used in c#) which have a
property called "Info". The Info property is also a dotnet object
(implemented in mc++). In the constructor of the "main" object I want to
initialize the property "Info" to null in a way that will make the c#
programmer (the user) able to write:
if (MyObj.Info==nu ll) {..}
I've tried to initialize the Info property (in mc++) as follows:
this->Info=0; // Note Info is a __gc class pointer
but the above c# code always returns false.
Any suggestions?
Peter
I have a dotnet object (implemented in mc++ and used in c#) which have a
property called "Info". The Info property is also a dotnet object
(implemented in mc++). In the constructor of the "main" object I want to
initialize the property "Info" to null in a way that will make the c#
programmer (the user) able to write:
if (MyObj.Info==nu ll) {..}
I've tried to initialize the Info property (in mc++) as follows:
this->Info=0; // Note Info is a __gc class pointer
but the above c# code always returns false.
Any suggestions?
Peter
Comment