mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-13 19:55:02 +00:00
Shim for trimming a potentially null string
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user