C# Класс FluentFs.Support.Tokenization.TokenReplacer

Replaces tokens in a file
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
TokenReplacer ( IFileSystemWrapper fileSystemWrapper, string input ) : System.IO
TokenReplacer ( string input ) : System.IO

Описание методов

ReplaceToken() публичный Метод

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)
Результат TokenWith

ReplaceToken() публичный Метод

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
Результат TokenWith

To() публичный Метод

Outputs the token replaced to a file
Occurs if the file already exists
public To ( string destination ) : void
destination string the destination path
Результат void

ToString() публичный Метод

public ToString ( ) : string
Результат string