Answers for "how to check if a letter is capital in C#"

C#
2

c# check if string is only letters and numbers

if (textVar.All(c => Char.IsLetterOrDigit(c))) {
    // String contains only letters & numbers
}
Posted by: Guest on May-19-2020
0

if char is upper csharp

char ch1 = 'G'; 
bool result = Char.IsUpper(ch1);
Posted by: Guest on September-25-2020
-1

how to check if a string contains a capital letter c#

using System.Linq;
str.Any(char.IsUpper);
Posted by: Guest on September-30-2020

Code answers related to "how to check if a letter is capital in C#"

C# Answers by Framework

Browse Popular Code Answers by Language