Share via


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)

Syntax

'Declaration
Protected Friend Function ReadWhile ( _
    condition As Func(Of TSymbol, Boolean) _
) As IEnumerable(Of TSymbol)
'Usage
Dim condition As Func(Of TSymbol, Boolean)
Dim returnValue As IEnumerable(Of TSymbol)

returnValue = Me.ReadWhile(condition)
protected internal IEnumerable<TSymbol> ReadWhile(
    Func<TSymbol, bool> condition
)
protected public:
IEnumerable<TSymbol>^ ReadWhile(
    Func<TSymbol, bool>^ condition
)
member ReadWhile : 
        condition:Func<'TSymbol, bool> -> IEnumerable<'TSymbol> 
function ReadWhile(
    condition : Func<TSymbol, boolean>
) : IEnumerable<TSymbol>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<TSymbol>
The token to read.

See Also

Reference

TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> Class

System.Web.Razor.Parser Namespace