TokenizerBackedParser(Of TTokenizer, TSymbol, TSymbolType).Optional Method (TSymbolType)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Determines whether parsing a token with the given type is optional.
Assembly: System.Web.Razor (in System.Web.Razor.dll)
'Declaration Protected Friend Function Optional ( _ type As TSymbolType _ ) As Boolean 'Usage Dim type As TSymbolType Dim returnValue As Boolean returnValue = Me.Optional(type)
Parameters
- type
- Type: TSymbolType
The type of the token.
Return Value
Type: System.Booleantrue if parsing a token with the given type is optional; otherwise, false.
Show: