Created
November 7, 2023 11:12
-
-
Save light-traveller/f68eeee56ff5f01c835a8bf5b1041481 to your computer and use it in GitHub Desktop.
Old Hashcode Computation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override int GetHashCode() | |
{ | |
unchecked | |
{ | |
int hash = 17; | |
hash = hash * 31 + firstField.GetHashCode(); | |
hash = hash * 31 + secondField.GetHashCode(); | |
return hash; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment