From b78cf1b879682c87a8621f1423b635fe7be79714 Mon Sep 17 00:00:00 2001 From: Jim Evans Date: Tue, 17 Mar 2020 15:15:23 -0700 Subject: [PATCH] Adding GetHashCode override for .NET EventFiringWebElement --- dotnet/src/support/Events/EventFiringWebDriver.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dotnet/src/support/Events/EventFiringWebDriver.cs b/dotnet/src/support/Events/EventFiringWebDriver.cs index 4d955f3ed845d..cb3015302ba44 100644 --- a/dotnet/src/support/Events/EventFiringWebDriver.cs +++ b/dotnet/src/support/Events/EventFiringWebDriver.cs @@ -1582,6 +1582,15 @@ public override bool Equals(object obj) return underlyingElement.Equals(other); } + + /// + /// Return the hash code for this . + /// + /// A 32-bit signed integer hash code. + public override int GetHashCode() + { + return this.underlyingElement.GetHashCode(); + } } } }