I have an IntPtr field in my C # class.
It contains a reference to an object in the C ++ library.
protected IntPtr ThingPtr;
At some point, I may or may not initialize it.
ThingPtr = FunctionInMyCplusplusLibrary();
I am wondering if it checks for null in this context (to check if this was intended or not)
if(ThingPtr == null) {
source share