string.IsNullOrEmpty() vs string.NotNullOrEmpty()

Posted by Chris S on Stack Overflow See other posts from Stack Overflow or by Chris S
Published on 2009-04-09T13:58:03Z Indexed on 2010/05/06 9:28 UTC
Read the original article Hit count: 350

Filed under:
|
|

I'm curious if any developers use string.IsNullOrEmpty() more often with a negative than with a positive

e.g.

if (!string.IsNullOrEmpty())

This is how I use the method 99% of the time. What was the design decision for this?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about string