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