How to

get Unicode Category for character

Published: 31. October 2011 | Updated: 31. October 2011
License: Microsoft Public License (MS-PL)
Categories: Framework » Strings
Tags: Basics C# Text
Was this snippet helpful for you? YESYES / NONO

Import namespace

using System.Globalization;

Code

UnicodeCategory category = char.GetUnicodeCategory('~');

Console.WriteLine(category);
Console Output:
MathSymbol
Send us feedback about this snippet »



Related Snippets: