BellevueCollege.Toolkit.Nullify C# (CSharp) Метод

Nullify() публичный статический Метод

Converts an empty/blank String to null
Because this method may potentially be used alot within an application, str is passed by reference to reduce the memory overhead of creating a copy of the parameter's value.
public static Nullify ( string &str ) : string
str string A string value that might be empty or contain only whitespace
Результат string
        public static string Nullify(ref string str)
        {
            return String.IsNullOrWhiteSpace(str) ? null : str;
        }