using System; using System.Collections.Generic; using System.Text; class Program { static void Main(string[] args) { Console.WriteLine("-> char.IsDigit('K'): {0}", char.IsDigit('K')); Console.WriteLine("-> char.IsDigit('9'): {0}", char.IsDigit('9')); Console.WriteLine("-> char.IsLetter('10', 1): {0}", char.IsLetter("10", 1)); Console.WriteLine("-> char.IsLetter('p'): {0}", char.IsLetter('p')); Console.WriteLine("-> char.IsWhiteSpace('Hello There', 5): {0}",char.IsWhiteSpace("Hello There", 5)); Console.WriteLine("-> char.IsWhiteSpace('Hello There', 6): {0}",char.IsWhiteSpace("Hello There", 6)); Console.WriteLine("-> char.IsLetterOrDigit('?'): {0}",char.IsLetterOrDigit('?')); Console.WriteLine("-> char.IsPunctuation('!'): {0}",char.IsPunctuation('!')); Console.WriteLine("-> char.IsPunctuation('>'): {0}",char.IsPunctuation('>')); Console.WriteLine("-> char.IsPunctuation(','): {0}",char.IsPunctuation(',')); } }