// C# Extension Method
// Doc: https://csharp-extension.com/en/method/1002214/char-issymbol
// @nuget: Z.ExtensionMethods
using System;
using System.Collections.Generic;
public class Program
{
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);
}