TokenizerBackedParser<TTokenizer,TSymbol,TSymbolType>.Optional Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Optional(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. |
Optional(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. |
Optional(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.
protected internal bool Optional(System.Web.Razor.Tokenizer.Symbols.KnownSymbolType type);
member this.Optional : System.Web.Razor.Tokenizer.Symbols.KnownSymbolType -> bool
Protected Friend Function Optional (type As KnownSymbolType) As Boolean
Parameters
- type
- KnownSymbolType
The type of the token.
Returns
true if parsing a token with the given type is optional; otherwise, false.
Applies to
Optional(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.
protected internal bool Optional(TSymbolType type);
member this.Optional : 'SymbolType -> bool
Protected Friend Function Optional (type As TSymbolType) As Boolean
Parameters
- type
- TSymbolType
The type of the token.
Returns
true if parsing a token with the given type is optional; otherwise, false.