[Mono-dev] [PATCH] Cleanup in System.Runtime.Serialization

Jensen Somers jensen.somers at gmail.com
Mon Nov 13 13:23:07 EST 2006


Hello,

Miguel de Icaza wrote:
> Hello!
>
>   
>> The following patch adds the ComVisibleAttribute to the ISerializable,
>> ISerializationSurrogate and ISurrogateSelector interface and adds the
>> sealed keyword to the OnDeserializedAttribute, OnDeserializingAttribute,
>> OnSerializedAttribute  OnSerializingAttribute and OptionalFieldAttribute
>> class.
>> It brings the classes closer to the .NET 2.0 classes.
>>     
>
> Thanks for your patch, I have committed it now.
>
> Miguel
I noticed that the OnDeserializedAttribute, OnDeserializingAttribute,
OnSerializedAttribute and OnSerializingAttribute had the Serializable
attribute, and the .NET 2.0 classes don't.
It gives a warning on the class status page.
I don't know if it's intended for some reason that the classes have it,
but I created a small patch to remove the attribute from the classes.

Kind regards,

Jensen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061113/317b2fe8/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: more_serialization_cleanup.patch
Type: text/x-patch
Size: 2842 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20061113/317b2fe8/attachment.bin 


More information about the Mono-devel-list mailing list