Categorizes a specified Unicode character into a group identified by one of the values. - CSharp System

CSharp examples for System:Char Unicode

Description

Categorizes a specified Unicode character into a group identified by one of the values.

Demo Code

// Licensed under MIT License (MIT) (https://github.com/zzzprojects/Z.ExtensionMethods)
using System.Globalization;
using System;//from ww w .  j a v  a 2  s .c o  m

public class Main{
        /// <summary>
    ///     Categorizes a specified Unicode character into a group identified by one of the  values.
    /// </summary>
    /// <param name="c">The Unicode character to categorize.</param>
    /// <returns>A  value that identifies the group that contains .</returns>
    public static UnicodeCategory GetUnicodeCategory(this Char c)
    {
        return Char.GetUnicodeCategory(c);
    }
}

Related Tutorials