mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +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();
|
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