TokenizerBackedParser(Of TTokenizer, TSymbol, TSymbolType).Optional Method (KnownSymbolType)

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.

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

Protected Friend Function Optional ( _
	type As KnownSymbolType _
) As Boolean
Dim type As KnownSymbolType 
Dim returnValue As Boolean 

returnValue = Me.Optional(type)


Type: System.Web.Razor.Tokenizer.Symbols.KnownSymbolType
The type of the token.

Return Value

Type: System.Boolean
true if parsing a token with the given type is optional; otherwise, false.