diff --git a/ICD.Common.Utils/StringUtils.cs b/ICD.Common.Utils/StringUtils.cs index 2569b14..b838fa4 100644 --- a/ICD.Common.Utils/StringUtils.cs +++ b/ICD.Common.Utils/StringUtils.cs @@ -268,6 +268,42 @@ namespace ICD.Common.Utils return TryConvert(Convert.ToSingle, value, out result); } + /// + /// Attempts to parse the string as a double. + /// + /// + /// + /// + [PublicAPI] + public static bool TryParse(string value, out double result) + { + return TryConvert(Convert.ToDouble, value, out result); + } + + /// + /// Attempts to parse the string as a byte. + /// + /// + /// + /// + [PublicAPI] + public static bool TryParse(string value, out byte result) + { + return TryConvert(Convert.ToByte, value, out result); + } + + /// + /// Attempts to parse the string as a float. + /// + /// + /// + /// + [PublicAPI] + public static bool TryParse(string value, out char result) + { + return TryConvert(Convert.ToChar, value, out result); + } + /// /// Attempts to parse the string as a bool. ///