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