C# Class Patchwork.Engine.Utility.PathHelper

Utility methods for dealing with paths.
Afficher le fichier Open project: GregRos/Patchwork

Méthodes publiques

Méthode Description
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

Method Details

ChangeExtension() public static méthode

public static ChangeExtension ( string path, string>.Func selector ) : string
path string
selector string>.Func
Résultat string

Components() public static méthode

public static Components ( string path ) : IEnumerable
path string
Résultat IEnumerable

Equal() public static méthode

public static Equal ( string path1, string path2 ) : bool
path1 string
path2 string
Résultat bool

GetAbsolutePath() public static méthode

public static GetAbsolutePath ( string relativePath ) : string
relativePath string
Résultat string

GetAbsolutePath() public static méthode

public static GetAbsolutePath ( string relativeTo, string relativePath ) : string
relativeTo string
relativePath string
Résultat string

GetAbsolutePathFromAssembly() public static méthode

public static GetAbsolutePathFromAssembly ( string relPath ) : string
relPath string
Résultat string

GetRelativePath() public static méthode

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.
Résultat String

GetRelativePath() public static méthode

public static GetRelativePath ( string path ) : string
path string
Résultat string

GetUserFriendlyPath() public static méthode

public static GetUserFriendlyPath ( string path ) : string
path string
Résultat string