Source/NFX/MiscUtils.cs
/// <summary>
/// Defaults string if it is null or whitespace
/// </summary>
Defaults string if it is null or whitespace
Defaults string if it is null or whitespace
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
    public static string Default(this string str, string val = "")
    {
       if (str.IsNullOrWhiteSpace()) return val;
       return str;
    }
[ System . Runtime . CompilerServices . MethodImpl ( System . Runtime . CompilerServices . MethodImplOptions . AggressiveInlining ) ] public static string Default ( this string str , string val = " " ) { if ( str . IsNullOrWhiteSpace ( ) ) return val ; return str ; }
Defaults string if it is null or whitespace
Defaults string if it is null or whitespace
string
this
val
string