user1893
user1893

Reputation: 83

System.identityHashCode inverse?

is there any inverse function of System.identityHashCode (object) which is able to provide the value of the object from the result of System.identityHashCode (object)?

Upvotes: 2

Views: 77

Answers (1)

m-szalik
m-szalik

Reputation: 3654

System.identityHashCode() returns a hash value for an object. It is possible to have equal hash values for more then one object. So revers function is impossible by design.

Upvotes: 1

Related Questions