TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType>.Was Method
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Determines whether the token with the given type was parsed.
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Protected Friend Function Was ( _
type As TSymbolType _
) As Boolean
'Usage
Dim type As TSymbolType
Dim returnValue As Boolean
returnValue = Me.Was(type)
protected internal bool Was(
TSymbolType type
)
protected public:
bool Was(
TSymbolType type
)
member Was :
type:'TSymbolType -> bool
function Was(
type : TSymbolType
) : boolean
Parameters
- type
Type: TSymbolType
The type of the token.
Return Value
Type: System.Boolean
true if the token with the given type was parsed; otherwise, false.
See Also
Reference
TokenizerBackedParser<TTokenizer, TSymbol, TSymbolType> Class