Reply as linked topic post contents:
[quote="immibis_, post:141, topic:8178"] [quote="JazzyJosh, post:123, topic:8178"] There's no reason to write [code]if (string != null && !string.isEmpty())[/code] when you can just write [code]if (!string.isNullOrEmpty())[/code] if you don't actually need to differentiate between a null result and an empty result. Of course null and empty aren't the same, but if you don't care, then it doesn't matter. Basically: [/quote] But, under what circumstances is that actually the right thing to do? [/quote]
Actual post whose contents were quoted
But, under what circumstances is that actually the right thing to do?