Skip to content

Commit b78cf1b

Browse files
committed
Adding GetHashCode override for .NET EventFiringWebElement
1 parent 8e1c405 commit b78cf1b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dotnet/src/support/Events/EventFiringWebDriver.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,15 @@ public override bool Equals(object obj)
15821582

15831583
return underlyingElement.Equals(other);
15841584
}
1585+
1586+
/// <summary>
1587+
/// Return the hash code for this <see cref="EventFiringWebElement"/>.
1588+
/// </summary>
1589+
/// <returns>A 32-bit signed integer hash code.</returns>
1590+
public override int GetHashCode()
1591+
{
1592+
return this.underlyingElement.GetHashCode();
1593+
}
15851594
}
15861595
}
15871596
}

0 commit comments

Comments
 (0)