There are several basic rules for this:
- Bool: if true returns 0, otherwise returns 1
- Byte, char, short or int: return a value of type
- Long: return (int) (f ^ f (β> 32))
- Float: return Convert.ToInt32 type values
- Object: returns the value generated by calling object.GetHashCode ()
- Array: Iterate the entire array and process each element separately
so in your case you have x = int and y = double, if you follow these rules, you will find a solution.
return x ^ y.GetHashCode ();
You can always add some fantastic math algorithms, but be careful with numerical collisions.
Fer sorio
source share