Share via


Tokenizer<TSymbol, TSymbolType>.CharOrWhiteSpace Method

Returns a function delegate, that accepts a character parameter and returns a value that indicates whether the character parameter is equal to specified character or white space.

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

Syntax

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

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

Parameters

  • character
    Type: System.Char
    The character used to compare.

Return Value

Type: System.Func<Char, Boolean>
A function delegate.

See Also

Reference

Tokenizer<TSymbol, TSymbolType> Class

System.Web.Razor.Tokenizer Namespace