diff --git a/ICD.Common.Utils/Extensions/StringExtensions.cs b/ICD.Common.Utils/Extensions/StringExtensions.cs index 219e42f..94f52f2 100644 --- a/ICD.Common.Utils/Extensions/StringExtensions.cs +++ b/ICD.Common.Utils/Extensions/StringExtensions.cs @@ -278,5 +278,19 @@ namespace ICD.Common.Utils.Extensions return extends.All(char.IsDigit); } + + /// + /// Returns true if the string contains the given character. + /// + /// + /// + /// + public static bool Contains(this string extends, char character) + { + if (extends == null) + throw new ArgumentNullException("extends"); + + return extends.Contains(character.ToString()); + } } }