using System.Globalization;
public static void Main()
Console.WriteLine(char.IsSymbol('*'));
UnicodeCategory category = UnicodeCategory.MathSymbol;
for (ushort codePoint = 0; codePoint < ushort.MaxValue; codePoint++) {
Char ch = Convert.ToChar(codePoint);
if (CharUnicodeInfo.GetUnicodeCategory(ch) == category) {
Console.Write("{0} (U+{1:X4}) ", ch, codePoint);
Console.WriteLine("\n{0} characters are in the {1:G} category",