[Mono-dev] Type.GUID patch
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.
----- 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
This looks ok to check in.
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
> 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
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list