Edit

Share via


Token Class

Definition

A unit of significant text on the command line.

public ref class Token : IEquatable<System::CommandLine::Parsing::Token ^>
public class Token : IEquatable<System.CommandLine.Parsing.Token>
type Token = class
    interface IEquatable<Token>
Public Class Token
Implements IEquatable(Of Token)
Inheritance
Token
Implements

Constructors

Token(String, TokenType, Symbol)

Properties

Type

The type of the token.

Value

The string value of the token.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

Equals(Token)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

Operators

Equality(Token, Token)

Checks if two specified Token instances have the same value.

Inequality(Token, Token)

Checks if two specified Token instances have different values.

Applies to