Generic Dictionary and generating a hashcode for multi-part key
- by Andrew
I have an object that has a multi-part key and I am struggling to find a suitable way override GetHashCode. An example of what the class looks like is.
public class wibble{
public int keypart1 {get; set;}
public int keypart2 {get; set;}
public int keypart3 {get; set;}
public int keypart4 {get; set;}
public int keypart5 {get; set;}
…