EventId.Equals Method

Definition

Overloads

Equals(EventId)

Indicates whether the current object is equal to another object of the same type. Two events are equal if they have the same id.

Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(EventId)

Source:
EventId.cs
Source:
EventId.cs
Source:
EventId.cs

Indicates whether the current object is equal to another object of the same type. Two events are equal if they have the same id.

public bool Equals (Microsoft.Extensions.Logging.EventId other);

Parameters

other
EventId

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 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

Equals(Object)

Source:
EventId.cs
Source:
EventId.cs
Source:
EventId.cs

Indicates whether this instance and a specified object are equal.

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 9 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)