Свойство | Type | Description | |
---|---|---|---|
SEPARATORS | char[] |
Свойство | Type | Description | |
---|---|---|---|
PreferredDirectorySeparatorChar | char |
Méthode | Description | |
---|---|---|
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.
|
Méthode | Description | |
---|---|---|
PathUtils ( ) : System | ||
PathsEqual ( string path1, string path2 ) : bool | ||
SplitPath ( string path ) : string[] |
public static Canonicalize ( string path ) : string | ||
path | string | |
Résultat | string |
public static IsAssemblyFileType ( string path ) : bool | ||
path | string | |
Résultat | bool |
public static RelativePath ( string from, string to ) : string | ||
from | string | |
to | string | |
Résultat | string |
public static SamePath ( string path1, string path2, bool ignoreCase = false ) : bool | ||
path1 | string | |
path2 | string | |
ignoreCase | bool | |
Résultat | bool |
public static SamePathOrUnder ( string path1, string path2, bool ignoreCase = false ) : bool | ||
path1 | string | |
path2 | string | |
ignoreCase | bool | |
Résultat | bool |
protected static char PreferredDirectorySeparatorChar | ||
Résultat | char |