Прочитать на английском Изменить

Поделиться через


Token.Equals Method

Definition

Overloads

Equals(Token)

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

Equals(Object)

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

Equals(Token)

Source:
Token.cs

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

C#
public bool Equals(System.CommandLine.Parsing.Token? other);

Parameters

other
Token

An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Implements

Applies to

.NET 10 (package-provided) и другие версии
Продукт Версии
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Equals(Object)

Source:
Token.cs

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

C#
public override bool Equals(object? obj);

Parameters

obj
Object

The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

Applies to

.NET 10 (package-provided) и другие версии
Продукт Версии
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)