Прочетете на английски

Споделяне чрез


ChatFinishReason.Equals Method

Definition

Overloads

Equals(ChatFinishReason)

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

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(ChatFinishReason)

Source:
ChatFinishReason.cs

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

C#
public bool Equals(Microsoft.Extensions.AI.ChatFinishReason other);

Parameters

other
ChatFinishReason

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 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)

Equals(Object)

Source:
ChatFinishReason.cs

Indicates whether this instance and a specified object are equal.

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

Parameters

obj
Object

The object to compare with the current instance.

Returns

true if obj and this instance are the same type and represent the same value; otherwise, false.

Applies to

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