C# Класс Baseline.UrlExtensions

Показать файл Открыть проект

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

Метод Описание
AppendUrl ( this url, string part ) : string

Smart helper to append two url strings together. Takes care of the "/" joining for you.

ChildUrl ( this url ) : string

Removes the first segment of a Url string

MoveUp ( this relativeUrl ) : string

Slightly smarter version of ChildUrl() that handles empty url's

ParentUrl ( this url ) : string

Removes the last segment of a Url string

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

AppendUrl() публичный статический Метод

Smart helper to append two url strings together. Takes care of the "/" joining for you.
public static AppendUrl ( this url, string part ) : string
url this
part string
Результат string

ChildUrl() публичный статический Метод

Removes the first segment of a Url string
public static ChildUrl ( this url ) : string
url this
Результат string

MoveUp() публичный статический Метод

Slightly smarter version of ChildUrl() that handles empty url's
public static MoveUp ( this relativeUrl ) : string
relativeUrl this
Результат string

ParentUrl() публичный статический Метод

Removes the last segment of a Url string
public static ParentUrl ( this url ) : string
url this
Результат string