C# Class FluentFs.Support.Tokenization.TokenReplacer

Replaces tokens in a file
显示文件 Open project: SkightTeam/eLiteWeb Class Usage Examples

Public Methods

Method Description
ReplaceToken ( string token ) : TokenWith

Replaces a token in a string using a default delimiter of @

ReplaceToken ( string token, string delimiter ) : TokenWith

Replaces a token in a string

To ( string destination ) : void

Outputs the token replaced to a file

ToString ( ) : string

Private Methods

Method Description
TokenReplacer ( IFileSystemWrapper fileSystemWrapper, string input ) : System.IO
TokenReplacer ( string input ) : System.IO

Method Details

ReplaceToken() public method

Replaces a token in a string using a default delimiter of @
public ReplaceToken ( string token ) : TokenWith
token string the token to replace (without the delimiter)
return TokenWith

ReplaceToken() public method

Replaces a token in a string
public ReplaceToken ( string token, string delimiter ) : TokenWith
token string the token to replace (without the delimiter)
delimiter string the delimiter that surrounds the token
return TokenWith

To() public method

Outputs the token replaced to a file
Occurs if the file already exists
public To ( string destination ) : void
destination string the destination path
return void

ToString() public method

public ToString ( ) : string
return string