Mono Class Library: System.IO.Path Overview | Members

System.IO.Path.DirectorySeparatorChar Field

Provides a string containing a single printable non-alphanumeric character used to separate directory levels in a hierarchical file system. [Edit]

public static readonly char DirectorySeparatorChar

Remarks

This field is read-only.

Note:

Path.AltDirectorySeparatorChar and Path.DirectorySeparatorChar are both valid for separating directory levels in a path string.

The value of this field is a backslash ('\') on Windows systems and a slash ('/') on Unix systems.

[Edit]

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0