C# Class Yea.IO.StringExtensions

Extension methods for strings
显示文件 Open project: OxPatient/Rule-Engine

Public Methods

Method Description
RemoveIllegalDirectoryNameCharacters ( this directoryName, char replacementChar = '_' ) : string

Removes illegal characters from a directory

RemoveIllegalFileNameCharacters ( this fileName, char replacementChar = '_' ) : string

Removes illegal characters from a file

Method Details

RemoveIllegalDirectoryNameCharacters() public static method

Removes illegal characters from a directory
public static RemoveIllegalDirectoryNameCharacters ( this directoryName, char replacementChar = '_' ) : string
directoryName this Directory name
replacementChar char Replacement character
return string

RemoveIllegalFileNameCharacters() public static method

Removes illegal characters from a file
public static RemoveIllegalFileNameCharacters ( this fileName, char replacementChar = '_' ) : string
fileName this File name
replacementChar char Replacement character
return string