C# Класс Emul8.Bootstrap.PathHelper

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AreSame() публичный Метод

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
Результат bool

GetRelativePath() публичный Метод

Calculates path relative to working directory calculated in constructor.
public GetRelativePath ( string filespec ) : string
filespec string
Результат string

PathHelper() публичный Метод

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
Результат System