C# 클래스 NUnit.ProjectEditor.PathUtils

Static methods for manipulating project paths, including both directories and files. Some synonyms for System.Path methods are included as well.
파일 보기 프로젝트 열기: nunit/nunit-project-editor

공개 프로퍼티들

프로퍼티 타입 설명
SEPARATORS char[]

보호된 프로퍼티들

프로퍼티 타입 설명
PreferredDirectorySeparatorChar char

공개 메소드들

메소드 설명
Canonicalize ( string path ) : string

Return the canonical form of a path, using '/' as the directory separator

IsAssemblyFileType ( string path ) : bool
RelativePath ( string from, string to ) : string

Returns the relative path from a base directory to another directory or file.

SamePath ( string path1, string path2, bool ignoreCase = false ) : bool

True if the two paths are the same. However, two paths to the same file or directory using different network shares or drive letters are not treated as equal.

SamePathOrUnder ( string path1, string path2, bool ignoreCase = false ) : bool

True if the two paths are the same or if the second is directly or indirectly under the first. Note that paths using different network shares or drive letters are considered unrelated, even if they end up referencing the same subtrees in the file system.

비공개 메소드들

메소드 설명
PathUtils ( ) : System
PathsEqual ( string path1, string path2 ) : bool
SplitPath ( string path ) : string[]

메소드 상세

Canonicalize() 공개 정적인 메소드

Return the canonical form of a path, using '/' as the directory separator
public static Canonicalize ( string path ) : string
path string
리턴 string

IsAssemblyFileType() 공개 정적인 메소드

public static IsAssemblyFileType ( string path ) : bool
path string
리턴 bool

RelativePath() 공개 정적인 메소드

Returns the relative path from a base directory to another directory or file.
public static RelativePath ( string from, string to ) : string
from string
to string
리턴 string

SamePath() 공개 정적인 메소드

True if the two paths are the same. However, two paths to the same file or directory using different network shares or drive letters are not treated as equal.
public static SamePath ( string path1, string path2, bool ignoreCase = false ) : bool
path1 string
path2 string
ignoreCase bool
리턴 bool

SamePathOrUnder() 공개 정적인 메소드

True if the two paths are the same or if the second is directly or indirectly under the first. Note that paths using different network shares or drive letters are considered unrelated, even if they end up referencing the same subtrees in the file system.
public static SamePathOrUnder ( string path1, string path2, bool ignoreCase = false ) : bool
path1 string
path2 string
ignoreCase bool
리턴 bool

프로퍼티 상세

PreferredDirectorySeparatorChar 보호되어 있는 정적으로 프로퍼티

protected static char PreferredDirectorySeparatorChar
리턴 char

SEPARATORS 공개적으로 정적으로 프로퍼티

public static char[] SEPARATORS
리턴 char[]