src/NLog/Internal/StringHelpers.cs
/// <summary>
/// IsNullOrWhiteSpace, including for .NET 3.5
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
IsNullOrWhiteSpace, including for .NET 3.5
IsNullOrWhiteSpace including for . NET 3 . 5
[ContractAnnotation("value:null => true")]
        internal static bool IsNullOrWhiteSpace(string value)
        {
#if NET3_5
            if (value == null) return true;
            if (value.Length == 0) return true;
            return String.IsNullOrEmpty(value.Trim());
#else
            return string.IsNullOrWhiteSpace(value);
#endif
        }
[ ContractAnnotation ( " " ) ] internal static bool IsNullOrWhiteSpace ( string value ) { if NET3_5 if ( value == null ) return true ; if ( value . Length == 0 ) return true ; return String . IsNullOrEmpty ( value . Trim ( ) ) ; else return string . IsNullOrWhiteSpace ( value ) ; endif }
IsNullOrWhiteSpace, including for .NET 3.5
IsNullOrWhiteSpace including for . NET 3 . 5
None
value
string
None