I have an IntPtr field in my C# class.
It holds a reference to an object in a C++ library.
protected IntPtr ThingPtr;
At some stage I may or may not initialise it.
ThingPtr = FunctionInMyCplusplusLibrary();
I'm wondering if checking whether it is null makes sense in this context (to check whether it has been intialised or not)
if(ThingPtr == null)
{
//Do stuff
}