C# 클래스 Patchwork.Engine.Utility.PathHelper

Utility methods for dealing with paths.
파일 보기 프로젝트 열기: GregRos/Patchwork

공개 메소드들

메소드 설명
ChangeExtension ( string path, string>.Func selector ) : string
Components ( string path ) : IEnumerable
Equal ( string path1, string path2 ) : bool
GetAbsolutePath ( string relativePath ) : string
GetAbsolutePath ( string relativeTo, string relativePath ) : string
GetAbsolutePathFromAssembly ( string relPath ) : string
GetRelativePath ( String fromPath, String toPath ) : String

Creates a relative path from one file or folder to another.

GetRelativePath ( string path ) : string
GetUserFriendlyPath ( string path ) : string

메소드 상세

ChangeExtension() 공개 정적인 메소드

public static ChangeExtension ( string path, string>.Func selector ) : string
path string
selector string>.Func
리턴 string

Components() 공개 정적인 메소드

public static Components ( string path ) : IEnumerable
path string
리턴 IEnumerable

Equal() 공개 정적인 메소드

public static Equal ( string path1, string path2 ) : bool
path1 string
path2 string
리턴 bool

GetAbsolutePath() 공개 정적인 메소드

public static GetAbsolutePath ( string relativePath ) : string
relativePath string
리턴 string

GetAbsolutePath() 공개 정적인 메소드

public static GetAbsolutePath ( string relativeTo, string relativePath ) : string
relativeTo string
relativePath string
리턴 string

GetAbsolutePathFromAssembly() 공개 정적인 메소드

public static GetAbsolutePathFromAssembly ( string relPath ) : string
relPath string
리턴 string

GetRelativePath() 공개 정적인 메소드

Creates a relative path from one file or folder to another.
public static GetRelativePath ( String fromPath, String toPath ) : String
fromPath String Contains the directory that defines the start of the relative path.
toPath String Contains the path that defines the endpoint of the relative path.
리턴 String

GetRelativePath() 공개 정적인 메소드

public static GetRelativePath ( string path ) : string
path string
리턴 string

GetUserFriendlyPath() 공개 정적인 메소드

public static GetUserFriendlyPath ( string path ) : string
path string
리턴 string