Today I've come across an interesting bit of C# code in a Unity project:
MyScript ms = new MyScript(); //MyScript derives from MonoBehaviour
ms = null;
if(!ms) { Debug.Log("ms = "+(ms==null)); }
It does seem to behave the same as:
if(ms == null) { /*Do Stuff*/ }
But is it really the same thing? I haven't found any documentation about this anywhere yet. Is there a reason to not use the shorter version or prefer one over the other?