c# string contains space

C#
string s = "Hello There";
bool fHasSpace = s.Contains(" ");
Source

Also in C#: