Path.DirectorySeparatorChar Field
Provides a platform-specific character used to separate directory levels in a path string that reflects a hierarchical file system organization.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static readonly Path DirectorySeparatorChar
Remarks
The character stored in this field cannot be in InvalidPathChars. AltDirectorySeparatorChar and DirectorySeparatorChar are both valid for separating directory levels in a path string. The value of this field is a slash ("/") on UNIX, and a backslash ("\") on the Windows and Macintosh operating systems.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.