how to check if first letter is uppercase c# code example
Example 1: c# make first letter uppercase
System.Console.WriteLine(char.ToUpper(str[0]) + str.Substring(1));
Example 2: how to check if a string contains a capital letter c#
using System.Linq;
str.Any(char.IsUpper);