[Mono-dev] Type.GUID patch
Kornél Pál
kornelpal at hotmail.com
Sat Sep 3 20:05:49 EDT 2005
Note that I still think that throwing a NotImplementedException for Types
that have no GuidAttribute is better as MS.NET never returns Guid.Empty.
MS.NET uses a deterministic algorythm to generate GUID for types that have
no GuidAttribute that we don't know yet. It may use standard Version 3 UUID
as Robert Jordan pointed out but even if it's true we don't know how exactly
the string (byte array) hashed using MD5 is composed.
But actually I don't care too much about it as Type.GUID is intended for COM
interop that isn't implemented by Mono.
Kornél
----- Original Message -----
From: "Zoltan Varga" <vargaz at gmail.com>
To: "Jonathan S. Chambers" <Jonathan.Chambers at ansys.com>
Cc: "mono-devel-list" <mono-devel-list at lists.ximian.com>
Sent: Sunday, September 04, 2005 1:43 AM
Subject: Re: [Mono-dev] Type.GUID patch
Hi,
This looks ok to check in.
Zoltan
On 9/2/05, Jonathan S. Chambers <Jonathan.Chambers at ansys.com> wrote:
>
>
>
> Here's a patch for the Type.GUID property. It was previously always
> returning Guid.Empty. It now returns the value of the GuidAttribute
> specified on the Type, else it returns Guid.Empty. This seems to be the
> behavior of .Net. Please review and commit, or give me permission to
> commit.
>
>
>
> Thanks,
>
> Jonathan S. Chambers
>
> Software Development Engineer
>
> ANSYS, Inc.
>
> Phone: 724.514.3682
>
> Fax: 724.514.3114
>
> E-mail: jonathan.chambers at ansys.com
>
>
>
> ___________________________________________________
>
> The information transmitted is intended only for the person or entity to
> which it is addressed and may contain confidential and/or privileged
> material. Any review, retransmission, dissemination or other use of, or
> taking of any action in reliance upon, this information by persons or
> entities other than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material from any
> computer.
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>
>
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list