How do I check a string to make sure it contains numbers, letters, or space only?
Simple:
function HasSpecialChars(string yourString) { return yourString.Any( ch => ! Char.IsLetterOrDigit( ch ) ) }
1.4m articles
1.4m replys
5 comments
56.9k users