Is char Alpha - CSharp System

CSharp examples for System:Char

Description

Is char Alpha

Demo Code


using System.Globalization;
using System;//from w  ww  .  jav a  2s  .co m

public class Main{
        public static bool IsAlpha(char c)
        {
            return ((((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z'))) || (c == '_'));
        }
}

Related Tutorials