Char - IsLower
Indicates whether the specified Unicode character is categorized as a lowercase letter.
public static void Main() { char [] input = {'E','n','t','i','t','y',' ','F','r','a','m','e','w','o','r','k',' ','6','.','2'}; Console.WriteLine("Is each of the following characters in a lower case?"); for (int i = 0; i < input.Length; i++) { // C# Extension Method: Char - IsLower var result = input[i].IsLower(); Console.WriteLine("{0} : {1} ", input[i], result); } }
View Source
using System; public static partial class Extensions { /// <summary> /// Indicates whether the specified Unicode character is categorized as a lowercase letter. /// </summary> /// <param name="c">The Unicode character to evaluate.</param> /// <returns>true if is a lowercase letter; otherwise, false.</returns> public static Boolean IsLower(this Char c) { return Char.IsLower(c); } }