Table of Contents

Class TokenComparison

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

An enum-like class that represents the result of comparing two Tokens.

public class TokenComparison : DeputyBase
Inheritance
TokenComparison

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK;
             var tokenComparison = TokenComparison.BOTH_UNRESOLVED;

Remarks

The return type of {@link Token.compareStrings}.

ExampleMetadata: fixture=_generated

Properties

BOTH_UNRESOLVED

This means both components are Tokens.

public static TokenComparison BOTH_UNRESOLVED { get; }

Property Value

TokenComparison

DIFFERENT

This means we're certain the two components are NOT Tokens, and different.

public static TokenComparison DIFFERENT { get; }

Property Value

TokenComparison

ONE_UNRESOLVED

This means exactly one of the components is a Token.

public static TokenComparison ONE_UNRESOLVED { get; }

Property Value

TokenComparison

SAME

This means we're certain the two components are NOT Tokens, and identical.

public static TokenComparison SAME { get; }

Property Value

TokenComparison