C# Class Emul8.Bootstrap.PathHelper

Afficher le fichier Open project: emul8/emul8 Class Usage Examples

Méthodes publiques

Méthode Description
AreSame ( string patha, string pathb ) : bool

Checks if two paths are the same assuming they are relative to working directory calculated in constructor.

GetRelativePath ( string filespec ) : string

Calculates path relative to working directory calculated in constructor.

PathHelper ( IEnumerable workingDirs ) : System

Initializes a new instance of the AntBootstrap.PathHelper class. It calculates common prefix path of all directories provided as an argument.

Method Details

AreSame() public méthode

Checks if two paths are the same assuming they are relative to working directory calculated in constructor.
public AreSame ( string patha, string pathb ) : bool
patha string
pathb string
Résultat bool

GetRelativePath() public méthode

Calculates path relative to working directory calculated in constructor.
public GetRelativePath ( string filespec ) : string
filespec string
Résultat string

PathHelper() public méthode

Initializes a new instance of the AntBootstrap.PathHelper class. It calculates common prefix path of all directories provided as an argument.
public PathHelper ( IEnumerable workingDirs ) : System
workingDirs IEnumerable
Résultat System