Свойство | Тип | Описание | |
---|---|---|---|
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[] |
public static Canonicalize ( string path ) : string | ||
path | string | |
Результат | string |
public static IsAssemblyFileType ( string path ) : bool | ||
path | string | |
Результат | bool |
public static RelativePath ( string from, string to ) : string | ||
from | string | |
to | string | |
Результат | string |
public static SamePath ( string path1, string path2, bool ignoreCase = false ) : bool | ||
path1 | string | |
path2 | string | |
ignoreCase | bool | |
Результат | bool |
public static SamePathOrUnder ( string path1, string path2, bool ignoreCase = false ) : bool | ||
path1 | string | |
path2 | string | |
ignoreCase | bool | |
Результат | bool |
protected static char PreferredDirectorySeparatorChar | ||
Результат | char |