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

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


TimeOnly.Equals Method

Definition

Overloads

Equals(TimeOnly)

Returns a value indicating whether the value of this instance is equal to the value of the specified TimeOnly instance.

Equals(Object)

Returns a value indicating whether this instance is equal to a specified object.

Equals(TimeOnly)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

Returns a value indicating whether the value of this instance is equal to the value of the specified TimeOnly instance.

C#
public bool Equals(TimeOnly value);

Parameters

value
TimeOnly

The object to compare to this instance.

Returns

true if the value parameter equals the value of this instance; otherwise, false.

Implements

Applies to

.NET 10 и други версии
Продукт Версии
.NET 6, 7, 8, 9, 10

Equals(Object)

Source:
TimeOnly.cs
Source:
TimeOnly.cs
Source:
TimeOnly.cs

Returns a value indicating whether this instance is equal to a specified object.

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

Parameters

value
Object

The object to compare to this instance.

Returns

true if value is an instance of TimeOnly and equals the value of this instance; otherwise, false.

Applies to

.NET 10 и други версии
Продукт Версии
.NET 6, 7, 8, 9, 10