C# Class kOS.Safe.Persistence.VolumePath

Represents the location of a directory or a file inside a volume.
Datei anzeigen Open project: KSP-KOS/KOS Class Usage Examples

Public Properties

Property Type Description
EMPTY VolumePath

Public Methods

Method Description
Combine ( ) : VolumePath
Equals ( object other ) : bool
FromString ( string pathString ) : VolumePath
FromString ( string pathString, VolumePath basePath ) : VolumePath
GetHashCode ( ) : int
GetParent ( ) : VolumePath
IsAbsolute ( String pathString ) : System.Boolean

Determines if a string represents an absolute path.

IsParent ( VolumePath path ) : bool
IsValidSegment ( string segment ) : bool
ToString ( ) : string

Protected Methods

Method Description
GetSegmentsFromString ( string pathString ) : List
VolumePath ( ) : System
VolumePath ( IEnumerable segments ) : System

Private Methods

Method Description
Canonicalize ( ) : void

Method Details

Combine() public method

public Combine ( ) : VolumePath
return VolumePath

Equals() public method

public Equals ( object other ) : bool
other object
return bool

FromString() public static method

public static FromString ( string pathString ) : VolumePath
pathString string
return VolumePath

FromString() public static method

public static FromString ( string pathString, VolumePath basePath ) : VolumePath
pathString string
basePath VolumePath
return VolumePath

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetParent() public method

public GetParent ( ) : VolumePath
return VolumePath

GetSegmentsFromString() protected static method

protected static GetSegmentsFromString ( string pathString ) : List
pathString string
return List

IsAbsolute() public static method

Determines if a string represents an absolute path.
public static IsAbsolute ( String pathString ) : System.Boolean
pathString String
return System.Boolean

IsParent() public method

public IsParent ( VolumePath path ) : bool
path VolumePath
return bool

IsValidSegment() public static method

public static IsValidSegment ( string segment ) : bool
segment string
return bool

ToString() public method

public ToString ( ) : string
return string

VolumePath() protected method

protected VolumePath ( ) : System
return System

VolumePath() protected method

protected VolumePath ( IEnumerable segments ) : System
segments IEnumerable
return System

Property Details

EMPTY public_oe static_oe property

public static VolumePath,kOS.Safe.Persistence EMPTY
return VolumePath