using System.Globalization; namespace System.Unicode { /// Provides extensions to the type. public static class UnicodeCategoryExtensions { /// Gets the short name of the unicode category. /// The category whose short name should be retrieved. /// The short name of the unicode category. public static string GetShortName(this UnicodeCategory category) { return UnicodeCategoryInfo.Get(category).ShortName; } /// Gets the long name of the unicode category. /// The category whose long name should be retrieved. /// The long name of the unicode category. public static string GetLongName(this UnicodeCategory category) { return UnicodeCategoryInfo.Get(category).LongName; } } }