C# Класс SmtpServer.Protocol.Text.TokenEnumerator

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

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

Метод Описание
AsText ( ) : string

Returns a text string which is the combined tokens.

Peek ( int count ) : Token

Peek at a token in the stream.

Take ( int count = 1 ) : Token

Take the given number of tokens.

TakeWhile ( bool>.Func predicate ) : void

Take tokens in the stream while the given predicate is true.

TakeWhile ( TokenKind kind ) : void

Take tokens in the stream while the token kind is the same as the supplied kind.

TokenEnumerator ( IEnumerable tokenizer ) : System

Constructor.

TokenEnumerator ( TokenReader tokenReader ) : System

Constructor.

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

Метод Описание
Checkpoint ( ) : ITokenEnumeratorCheckpoint

Create a checkpoint on the enumerator that can be rolled back to.

TokenEnumerator ( ) : System

Constructor.

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

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

Returns a text string which is the combined tokens.
public AsText ( ) : string
Результат string

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

Peek at a token in the stream.
public Peek ( int count ) : Token
count int The number of tokens to look ahead.
Результат Token

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

Take the given number of tokens.
public Take ( int count = 1 ) : Token
count int The number of tokens to consume.
Результат Token

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

Take tokens in the stream while the given predicate is true.
public TakeWhile ( bool>.Func predicate ) : void
predicate bool>.Func The predicate to use for evaluating whether or not to consume a token.
Результат void

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

Take tokens in the stream while the token kind is the same as the supplied kind.
public TakeWhile ( TokenKind kind ) : void
kind TokenKind The token kind to test against to determine whether the token should be consumed.
Результат void

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

Constructor.
public TokenEnumerator ( IEnumerable tokenizer ) : System
tokenizer IEnumerable The tokenizer to retrieve the tokens from.
Результат System

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

Constructor.
public TokenEnumerator ( TokenReader tokenReader ) : System
tokenReader TokenReader The token reader to pull the tokens from.
Результат System