I have an object for which I want to generate a unique hash (override GetHashCode()) but I want to avoid overflows or something unpredictable.
The code should be the
There is nothing wrong with this approach as long as the members whose hashcodes you are combining follow the rules of hash codes. In short ...