[Mono-list] System.Drawing.Drawing2D

Martin Coxall martin.coxall@itouch.co.uk
Fri, 24 Aug 2001 10:51:49 +0100


> why not something like
> public unsafe override int GetHashCode()
> {
> fixed(float * fp = m) {
> int * ip = (int *) fp;
> return ip[0] ^ ip[1] ^ ip[2] ^ ip[3];
> }
> }

I think we should avoid unsafe code blocks in the Mono libraries. All
Microsoft's libraries pass the verifier's tests, and if we want Mono's
codebase to be trusted, I think we should attempt to do the same.

Martin