If you're using string.IsNullOrEmpty, be aware that there is a fatal bug in the JIT compiler that causes a null reference exception:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=113102
This means that String.IsNullOrEmpty
Read More