How to check if the Character is a Letter in c# using Char.IsLetter ?

The Char.IsLetter function can be used to find if the character is a Letter (Unicode) .

If the specified character is a Letter , then the function Char.IsLetter returns true else returns false.

How to check if the Character is a Letter in c# using Char.IsLetter ?

Below is a sample sourcecode demonstrated on how to use Char.IsLetter .

using System;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string inputString = "Hurray !!! Welcome to Abundant Code...";
            foreach (var inputChar in inputString)
            {
                if (Char.IsLetter(inputChar))
                {
                    Console.WriteLine(inputChar + " is a Letter ");
                }
                else
                {
                    Console.WriteLine(inputChar + " is a not a Letter ");
                }
            }

            Console.Read();
        }
    }
}