We have the following:
int* a;
if(!a) //if(a == NULL) also do that
a = new int;
and the question is how to do that with int^?
int^ a;
if(?????????????)
a = gcnew int;
P.S. nullptr doesn’t solve them all, for I found the object holding value(nullptr judge as not equal) and immediately after that, using this object cause System.ObjectDisposedException.
Use
nullptr: