How to check if a string is uppercase or lowercase in C# code example Example: how to check if a string contains a capital letter c# using System.Linq; str.Any(char.IsUpper);