c# check for uppercase and lowercase code example Example: if char is upper csharp char ch1 = 'G'; bool result = Char.IsUpper(ch1);