Tag Archives: blank

Efficiently see if a string is blank in C#

This example uses three strings to compare different methods for determining whether a string is blank. One of the methods, the string class’s IsNullOrWhiteSpace method, only works in .NET Framework 4.5 or later, so this example targets that version of … Continue reading

Posted in performance, strings | Tagged , , , , , , , , , , , , , , | 5 Comments