Shim for trimming a potentially null string

This commit is contained in:
Chris Cameron
2017-07-25 16:17:56 -04:00
parent 57d0b481f1
commit 83902b61b6

View File

@@ -516,5 +516,17 @@ namespace ICD.Common.Utils
return builder.ToString();
}
/// <summary>
/// Shim of value.ToString()
/// Returns null if input value is null.
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
[PublicAPI, CanBeNull]
public static string Trim(string value)
{
return value == null ? null : value.ToUpper();
}
}
}