C# Class kOS.Safe.Persistence.VolumePath

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

Méthodes publiques

Свойство Type Description
EMPTY VolumePath

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
GetSegmentsFromString ( string pathString ) : List
VolumePath ( ) : System
VolumePath ( IEnumerable segments ) : System

Private Methods

Méthode Description
Canonicalize ( ) : void

Method Details

Combine() public méthode

public Combine ( ) : VolumePath
Résultat VolumePath

Equals() public méthode

public Equals ( object other ) : bool
other object
Résultat bool

FromString() public static méthode

public static FromString ( string pathString ) : VolumePath
pathString string
Résultat VolumePath

FromString() public static méthode

public static FromString ( string pathString, VolumePath basePath ) : VolumePath
pathString string
basePath VolumePath
Résultat VolumePath

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetParent() public méthode

public GetParent ( ) : VolumePath
Résultat VolumePath

GetSegmentsFromString() protected static méthode

protected static GetSegmentsFromString ( string pathString ) : List
pathString string
Résultat List

IsAbsolute() public static méthode

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

IsParent() public méthode

public IsParent ( VolumePath path ) : bool
path VolumePath
Résultat bool

IsValidSegment() public static méthode

public static IsValidSegment ( string segment ) : bool
segment string
Résultat bool

ToString() public méthode

public ToString ( ) : string
Résultat string

VolumePath() protected méthode

protected VolumePath ( ) : System
Résultat System

VolumePath() protected méthode

protected VolumePath ( IEnumerable segments ) : System
segments IEnumerable
Résultat System

Property Details

EMPTY public_oe static_oe property

public static VolumePath,kOS.Safe.Persistence EMPTY
Résultat VolumePath