C# Class Microsoft.Xna.Framework.Utilities.FileHelpers

Show file Open project: procfxgen/MGShaderEditor

Public Properties

Property Type Description
BackwardSlash char
ForwardSlash char
ForwardSlashString string
NotSeparator char
Separator char

Public Methods

Method Description
NormalizeFilePathSeparators ( string name ) : string
ResolveRelativePath ( string filePath, string relativeFile ) : string

Combines the filePath and relativeFile based on relativeFile being a file in the same location as filePath. Relative directory operators (..) are also resolved

Method Details

NormalizeFilePathSeparators() public static method

public static NormalizeFilePathSeparators ( string name ) : string
name string
return string

ResolveRelativePath() public static method

Combines the filePath and relativeFile based on relativeFile being a file in the same location as filePath. Relative directory operators (..) are also resolved
public static ResolveRelativePath ( string filePath, string relativeFile ) : string
filePath string Path to the file we are starting from
relativeFile string Relative location of another file to resolve the path to
return string

Property Details

BackwardSlash public static property

public static char BackwardSlash
return char

ForwardSlash public static property

public static char ForwardSlash
return char

ForwardSlashString public static property

public static string ForwardSlashString
return string

NotSeparator public static property

public static char NotSeparator
return char

Separator public static property

public static char Separator
return char