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

2014-12-08 Thread Hüning , Christian
Hi there, 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.

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

2014-12-08 Thread Robert Jordan
On 08.12.2014 09:21, Hüning, Christian wrote: However I found that Mono and .NET produce different hashcodes for the same type from the same DLL. On second thought, this is very clear to me, since up to recently we could have no idea how the GetHashCode() implementation in .NET looks like.

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

2014-12-08 Thread Kornel Pal
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

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

2014-12-08 Thread Edward Ned Harvey (mono)
From: mono-list-boun...@lists.ximian.com [mailto:mono-list- boun...@lists.ximian.com] On Behalf Of Hüning, Christian 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

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

2014-12-08 Thread Hüning , Christian
Thanks very much for the hint to FNV! It exactly solves my problem! Von: Kornel Pal [mailto:kornel...@gmail.com] Gesendet: Montag, 8. Dezember 2014 11:34 An: Hüning, Christian; mono-list@lists.ximian.com Betreff: Re: [Mono-list] Differences in GetHashCode() of Type between .NET and Mono