ReadWhile Method

TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.ReadWhile Method

Reads a token while the condition is not reached.

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

protected internal IEnumerable<TSymbol> ReadWhile(
	Func<TSymbol, bool> condition
)

Parameters

condition
Type: System.Func<TSymbol, Boolean>
The condition.

Return Value

Type: System.Collections.Generic.IEnumerable<TSymbol>
The token to read.
Show:
© 2016 Microsoft