Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

if string contains number c#

"abc3def".Any(c => char.IsDigit(c));

// Or to make it shorter:
"abc3def".Any(char.IsDigit);
 
PREVIOUS NEXT
Tagged: #string #number
ADD COMMENT
Topic
Name
1+5 =