Code Quiz: That Empty Feeling

Which would you use to test if a string is blank? And why?

1. x.Equals(string.Empty)

2. x = ""

3. x.Length = 0

4. x = string.Empty

5. string.Empty.Equals(x)
 

My book "Choose Your First Product" is available now.

It gives you 4 easy steps to find and validate a humble product idea.

Learn more.

(By the way, I read every comment and often respond.)

Your comment, please?

Your Name
Your Url (optional)
Note: I may edit, reuse or delete your comment. Don't be mean.