[Mono-dev] Type.GUID patch

Kornél Pál kornelpal at hotmail.com
Sat Sep 3 08:08:17 EDT 2005


It is usually required for COM interop. I think NotImplementedException
should be thrown for type without GuidAttribute instead of Guid.Empty
because MS.NET really generates a Guid using an algorythm that seems to be
somehow deterministic.

Kornél

----- Original Message -----
From: "Robert Jordan" <robertj at gmx.net>
To: <mono-devel-list at lists.ximian.com>
Sent: Saturday, September 03, 2005 1:58 PM
Subject: Re: [Mono-dev] Type.GUID patch


> Jonathan,
>
>> 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.
>
> BTW, .NET's Type.GUID never returns Guid.Empty. If GuidAttribute
> isn't applied, it returns a GUID that seems to be somehow
> derived/generated from the type name at runtime.
>
> Rob
>
> _______________________________________________
> 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