I am trying to create a quick hashcode function for a complex number class (a + b) in C#.
I have seen repeatedly the a.GetHashcode()^b.GetHashCode() method.
But this will give the same hashcode for (a,b) and (b,a).
Are there any standard algorithm to do this and are there any functions in the .Net framework to help?