how to say if a string doesn't contain any of some letters in c# code example Example: how to check if a string contains a capital letter c# using System.Linq; str.Any(char.IsUpper);