C# Path AltDirectorySeparatorChar

Description

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

Syntax

Path.AltDirectorySeparatorChar has the following syntax.


public static readonly char AltDirectorySeparatorChar

Example

The following code example demonstrates a use of the AltDirectorySeparatorChar field.


/*from   ww  w.  j a v a  2 s. co  m*/
using System;
using System.IO;
public class MainClass{
  public static void Main(String[] argv){  
    Console.WriteLine(Path.AltDirectorySeparatorChar);
  }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter