String - GetUnicodeCategory

Categorizes the character at the specified position in a specified string into a group identified by one of the values.

Try it

public static void Main()
{
    var input = "Entity Framework 6.2";

    // C# Extension Method: String - GetUnicodeCategory
    Console.WriteLine("{0}: {1} ", input[0], input.GetUnicodeCategory(0));
	Console.WriteLine("{0}: {1} ", input[1], input.GetUnicodeCategory(1));
	Console.WriteLine("{0}: {1} ", input[6], input.GetUnicodeCategory(6));
	Console.WriteLine("{0}: {1} ", input[17], input.GetUnicodeCategory(17));
	Console.WriteLine("{0}: {1} ", input[18], input.GetUnicodeCategory(18));
}

View Source
using System;
using System.Globalization;

public static partial class Extensions
{
    /// <summary>
    ///     Categorizes the character at the specified position in a specified string into a group identified by one of
    ///     the  values.
    /// </summary>
    /// <param name="s">A .</param>
    /// <param name="index">The character position in .</param>
    /// <returns>A  enumerated constant that identifies the group that contains the character at position  in .</returns>
    public static UnicodeCategory GetUnicodeCategory(this String s, Int32 index)
    {
        return Char.GetUnicodeCategory(s, index);
    }
}