Char.IsWhiteSpace : Char « System « C# / C Sharp by API






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(); 
    } 
 
  }     
}

   
  








Related examples in the same category

1.Char.IsControl
2.Char.IsDigit
3.Char.IsLetter
4.Char.IsLower
5.Char.IsPunctuation
6.Char.IsSeparator
7.Char.IsSymbol
8.Char.IsUpper
9.Char.MaxValue
10.Char.MinValue
11.Char.Parse(String value)
12.Char.ToUpper