Why is && preferable to & and || preferable to |?
&&
&
||
|
I asked someone who\'s been programming for years a
In the case of:
if (obj != null && obj.Property == true) { }
would work as expected.
But:
if (obj != null & obj.Property == true) { }
could potentially throw a null reference exception.