Mega Code Archive

 
Categories / C# by API / System
 

Char IsWhiteSpace

using System;      class MainClass {        public static void Main() {          string str = "This is a test. $23";      int i;        for(i=0; i < str.Length; i++) {        Console.Write(str[i] + " is");        if(Char.IsWhiteSpace(str[i]))          Console.Write(" whitespace");          Console.WriteLine();      }      }      }