This documentation is archived and is not being maintained.

Char.IsSeparator Method (Char)

Updated: March 2009

Indicates whether the specified Unicode character is categorized as a separator character.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public static bool IsSeparator(
	char c


Type: System.Char

A Unicode character.

Return Value

Type: System.Boolean
true if c is a separator character; otherwise, false.

The Unicode standard recognizes three subcategories of separators:


The Unicode standard classifies the characters \u000A (LF), \u000C (FF), and \u000A (CR) as control characters (members of the UnicodeCategory.Control category), not as separator characters.

The following example lists the Char objects that are classified as separator characters.

using System;

public class Class1
   public static void Main()
      for (int ctr = Convert.ToInt32(Char.MinValue); ctr <= Convert.ToInt32(Char.MaxValue); ctr++)
         char ch = (Char) ctr;
         if (Char.IsSeparator(ch))
            Console.WriteLine(@"\u{0:X4} ({1})", (int) ch, Char.GetUnicodeCategory(ch).ToString());
// The example displays the following output: 
//       \u0020 (SpaceSeparator) 
//       \u00A0 (SpaceSeparator) 
//       \u1680 (SpaceSeparator) 
//       \u180E (SpaceSeparator) 
//       \u2000 (SpaceSeparator) 
//       \u2001 (SpaceSeparator) 
//       \u2002 (SpaceSeparator) 
//       \u2003 (SpaceSeparator) 
//       \u2004 (SpaceSeparator) 
//       \u2005 (SpaceSeparator) 
//       \u2006 (SpaceSeparator) 
//       \u2007 (SpaceSeparator) 
//       \u2008 (SpaceSeparator) 
//       \u2009 (SpaceSeparator) 
//       \u200A (SpaceSeparator) 
//       \u2028 (LineSeparator) 
//       \u2029 (ParagraphSeparator) 
//       \u202F (SpaceSeparator) 
//       \u205F (SpaceSeparator) 
//       \u3000 (SpaceSeparator)

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 3.5, 2.0

XNA Framework

Supported in: 3.0, 2.0, 1.0




March 2009

Expanded the Remarks section and replaced the example.

Customer feedback.