StringExtensions.HasValue method
Version 1.1.28
                .NET Framework 4.8
            | Namespace | Skybrud.Essentials.Strings.Extensions | 
|---|---|
| Assembly | Skybrud.Essentials.dll | 
HasValue(string)
Extension method
                    Gets whether the input string has a value. This extension method is equal to calling
System.String.IsNullOrWhiteSpace(System.String).
public static bool HasValue(this string input)
Parameters
input
                                String 
                            The input string to test.
Returns
true if input has a value; otherwise false.
HasValue(string, out string)
Extension method
                    Gets whether the input string has a value.
This method may be use to improve the readability of your code - eg. instead of declaring a variable first, and then calling Skybrud.Essentials.Strings.Extensions.StringExtensions.HasValue(System.String) afterwards.
public static bool HasValue(this string input, string result)
Parameters
input
                                String 
                            The input string to test.
result
                                String 
                            When this method returns, contains the input value.
Returns
true if input has a value; otherwise false.