Skip to content

Instantly share code, notes, and snippets.

@light-traveller
Created November 7, 2023 11:12
Show Gist options
  • Save light-traveller/f68eeee56ff5f01c835a8bf5b1041481 to your computer and use it in GitHub Desktop.
Save light-traveller/f68eeee56ff5f01c835a8bf5b1041481 to your computer and use it in GitHub Desktop.
Old Hashcode Computation
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