[Mono-list] Differences in GetHashCode() of Type between .NET and Mono

Kornel Pal kornelpal at gmail.com
Mon Dec 8 10:33:50 UTC 2014

On 12/8/2014 9:21 AM, Hüning, Christian wrote:
> I am using Mono alongside .NET in larger Deployments. Just recently I 
> wanted to use GetHashCode() of the type of an object to start a little 
> algorithm on each node, which needs to produce the same result when 
> the same type’s hashcode (or another equivalent information) is used.

You might want to use 32-bit FNV-1a 
(http://www.isthe.com/chongo/tech/comp/fnv/index.html) on 
Type.AssemblyQualifiedName instead of GetHashCode() for this specific 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20141208/725f3596/attachment.html>

More information about the Mono-list mailing list