get Unicode Category for character
Published: 31. October 2011 | Updated: 31. October 2011License: Microsoft Public License (MS-PL)
Categories: Framework » Strings
Tags: Basics C# Text
Import namespace
using System.Globalization;
Code
UnicodeCategory category = char.GetUnicodeCategory('~'); Console.WriteLine(category);Console Output:
MathSymbol
| Send us feedback about this snippet » |





