Answers for "check number letters in string 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
-1

c# check characters in string

//true if it doesn't contain letters
bool result = hello.Any(x => !char.IsLetter(x));
Posted by: Guest on March-04-2021

Code answers related to "check number letters in string c#"

C# Answers by Framework

Browse Popular Code Answers by Language