Possible Duplicate:
Can I depend on the values of GetHashCode() to be consistent?
If I use the Object.GetHashCode()
method across two systems/framework versions, am I guaranteed to get the same value for the same input? In other words, does its value make a good key for persistent data?
Note: I don't care about collisions in this problem.
As a bonus, am I guaranteed to get the same value in Mono vs. Microsoft .Net?