System.IO.Path.AltDirectorySeparatorChar Field

Provides a platform-specific alternate character used to separate directory levels in a path string that reflects a hierarchical file system organization.

Syntax

public static readonly char AltDirectorySeparatorChar

Remarks

The character stored in this field cannot be in Path.InvalidPathChars. This field can be set to the same value as Path.DirectorySeparatorChar. AltDirectorySeparatorChar and DirectorySeparatorChar are both valid for separating directory levels in a path string.

The value of this field is a backslash ('\') on UNIX, and a slash ('/') on Windows and Macintosh operating systems.

Requirements

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