C# Class FluentFs.Support.Tokenization.TokenReplacer

Replaces tokens in a file
Afficher le fichier Open project: SkightTeam/eLiteWeb Class Usage Examples

Méthodes publiques

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

Méthode Description
TokenReplacer ( IFileSystemWrapper fileSystemWrapper, string input ) : System.IO
TokenReplacer ( string input ) : System.IO

Method Details

ReplaceToken() public méthode

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)
Résultat TokenWith

ReplaceToken() public méthode

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
Résultat TokenWith

To() public méthode

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

ToString() public méthode

public ToString ( ) : string
Résultat string