Char - IsSymbol

Indicates whether the specified Unicode character is categorized as a symbol character.

Try it

public static void Main()
{
    char [] input = new char[] { 'E', 'F', '?', '+', '`', '~', '!', '@', '#', '$', '%', '^', '&', '*', '|', ',', ' ', 'z' };

    Console.WriteLine("Is each of the following characters a symbol?");
	
    for (int i = 0; i < input.Length; i++)
    {
		// C# Extension Method: Char - IsSymbol
		var result = input[i].IsSymbol();
		
        Console.WriteLine("{0} :  {1} ", input[i] , result);
    }
}

View Source
using System;

public static partial class Extensions
{
    /// <summary>
    ///     Indicates whether the specified Unicode character is categorized as a symbol character.
    /// </summary>
    /// <param name="c">The Unicode character to evaluate.</param>
    /// <returns>true if  is a symbol character; otherwise, false.</returns>
    public static Boolean IsSymbol(this Char c)
    {
        return Char.IsSymbol(c);
    }
}