Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
makeMake sure objects aren't nullnull.
null
having obj1Having obj1 and obj2obj2:
obj1
obj2
if( obj1 == null ) { return false; } return obj1.Equals( obj2 );
make sure objects aren't null.
having obj1 and obj2:
Make sure objects aren't null.
Having obj1 and obj2:
if(obj1 == null ) { return false; } return obj1.Equals( obj2 );