SyntaxFix
Write A Post
Hire A Developer
Questions
It's also possible to use a regular expression to achieve this when you want to test for any whitespace character and not just a space.
var text = "sossjj ssskkk"; var regex = new Regex(@"\s"); regex.IsMatch(text); // true