my class:
public class myClass { public int A { get; set; } public int B { get; set; } public int C { get; set; } public int D { get; set; }
Override in your myClass:
GetHashCode method
Equals method
To implement GetHashCode method you can just XOR GetHashCodes from your integer properties.
Optionally override ToString method and implement IEquatable interface