C# 클래스 Baseline.UrlExtensions

파일 보기 프로젝트 열기: JasperFx/baseline

공개 메소드들

메소드 설명
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