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)

I'm currently writing a book about how to build your first product. If you want to build your first product, please sign up to be notified when the book is available.

(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.