TokenComparison
An enum-like class that represents the result of comparing two Tokens.
The return type of Token.compareStrings.
Constants
| Name | Type | Description |
|---|---|---|
BothUnresolved | TokenComparison | This means both components are Tokens. |
Different | TokenComparison | This means we're certain the two components are NOT Tokens, and different. |
OneUnresolved | TokenComparison | This means exactly one of the components is a Token. |
Same | TokenComparison | This means we're certain the two components are NOT Tokens, and identical. |
BothUnresolvedRequired
public TokenComparison BothUnresolved { get; }
- Type: TokenComparison
This means both components are Tokens.
DifferentRequired
public TokenComparison Different { get; }
- Type: TokenComparison
This means we're certain the two components are NOT Tokens, and different.
OneUnresolvedRequired
public TokenComparison OneUnresolved { get; }
- Type: TokenComparison
This means exactly one of the components is a Token.
SameRequired
public TokenComparison Same { get; }
- Type: TokenComparison
This means we're certain the two components are NOT Tokens, and identical.