Share via


Tokenizer<TSymbol, TSymbolType>.TakeUntil Method

Parses the source document until the condition specified by predicate is met or end file is reached.

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

Syntax

'Declaration
Protected Function TakeUntil ( _
    predicate As Func(Of Char, Boolean) _
) As Boolean
'Usage
Dim predicate As Func(Of Char, Boolean)
Dim returnValue As Boolean 

returnValue = Me.TakeUntil(predicate)
protected bool TakeUntil(
    Func<char, bool> predicate
)
protected:
bool TakeUntil(
    Func<wchar_t, bool>^ predicate
)
member TakeUntil : 
        predicate:Func<char, bool> -> bool
protected function TakeUntil(
    predicate : Func<char, boolean>
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the predicate condition is met; false if end of file is reached.

See Also

Reference

Tokenizer<TSymbol, TSymbolType> Class

System.Web.Razor.Tokenizer Namespace