Equals(object?)
override
public override bool Equals(object? obj)Determines whether the specified object is equal to the current object.
Parameters
objobject?- The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.