Helper Methods: How to Determine if a String is Empty, Null, or WhiteSpace

C# has two very under appreciated helper methods that can be used to quickly determine whether a string is null, empty, or just contains whitespace. To determine whether a string is empty (Length == 0) or null, you can use the static string helper method string.IsNullOrEmpty(). Using this helper method to determine if a string … Continue reading “Helper Methods: How to Determine if a String is Empty, Null, or WhiteSpace”