diff --git a/X10D/src/StringExtensions.cs b/X10D/src/StringExtensions.cs index fbf506f..8a88a32 100644 --- a/X10D/src/StringExtensions.cs +++ b/X10D/src/StringExtensions.cs @@ -179,14 +179,27 @@ /// /// Determines if all alpha characters in this string are considered lowercase. /// - /// The input string. + /// The input string. /// /// Returns if all alpha characters are lowercase, /// otherwise. /// - public static bool IsLower(this string str) + public static bool IsLower(this string value) { - return str.Where(char.IsLetter).All(char.IsLower); + for (var index = 0; index < value.Length; index++) + { + if (!char.IsLetter(value[index])) + { + continue; + } + + if (!char.IsLower(value[index])) + { + return false; + } + } + + return true; } ///