Skip to content

Instantly share code, notes, and snippets.

@derjabkin
Created July 10, 2013 13:36
Show Gist options
  • Save derjabkin/5966330 to your computer and use it in GitHub Desktop.
Save derjabkin/5966330 to your computer and use it in GitHub Desktop.
AddHashCodes (untested)
private static int AddHashCodes(params object[] fields)
{
return BitConverter.ToInt32(BitConverter.GetBytes(fields.Select(f => f == null ? 0L : f.GetHashCode()).Sum()),0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment