Is English Character - CSharp System

CSharp examples for System:Char

Description

Is English Character

Demo Code



public class Main{
        public static bool IsCharacter(this char c)
        {// ww  w .  j a va2 s . c  om
            return c.IsLower() || c.IsUpper();
        }
        public static bool IsLower(this char c)
        {
            return c >= 'a' && c <= 'z';
        }
        public static bool IsUpper(this char c)
        {
            return c >= 'A' && c <= 'Z';
        }
}

Related Tutorials