Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
C#
c# check if string is only letters and numbers
XIAOTING li
Programming language:
C#
2021-06-25 15:56:02
0
Q:
c# check if string is only letters and numbers
lotsnlots
Code:
C#
2021-04-01 05:28:43
if (textVar.All(c => Char.IsLetterOrDigit(c))) { // String contains only letters & numbers }
2
Tags
number
string
check
letter
Related
c# how do you check if a string contains only digits
how to cjeck if a string has a word c#
how to check that string has only alphabet in c#
if string contains number c#
check textbox is only numbers + c#
c# capitalize first letter of each word in a string
how to check if a string contains a capital letter c#
c# check if string is all numbers
c# replace all non numeric characters
remove all non alphabetic characters from string c#
c# check if string contains value
return every digit on a string c#
c# only letters
c# how to check string is number
c# see if string is int
how to minimum text length in textbox in c#
C# check many strings quickly
New to Communities?
Join the community