Skip to content

Commit

Permalink
Adding GetHashCode override for .NET EventFiringWebElement
Browse files Browse the repository at this point in the history
  • Loading branch information
jimevans committed Mar 17, 2020
1 parent 8e1c405 commit b78cf1b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dotnet/src/support/Events/EventFiringWebDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,15 @@ public override bool Equals(object obj)

return underlyingElement.Equals(other);
}

/// <summary>
/// Return the hash code for this <see cref="EventFiringWebElement"/>.
/// </summary>
/// <returns>A 32-bit signed integer hash code.</returns>
public override int GetHashCode()
{
return this.underlyingElement.GetHashCode();
}
}
}
}

0 comments on commit b78cf1b

Please sign in to comment.