[Mono-dev] Re: [PATCH] NET_2_0 Serialization Callbacks
Robert Jordan
robertj at gmx.net
Fri Jun 9 08:35:34 EDT 2006
Robert Jordan wrote:
> Hey,
>
> I've attached the patches to this bug:
>
> http://bugzilla.ximian.com/show_bug.cgi?id=78594
>
> The code could be used for 1.1 as well (the 1.1 support
> is commented out). However, as Lluis wrote, the
> formatters must cope with these changes. Ours do, but
> custom formatters do not.
>
> There is an unsolved issue with the callbacks:
>
> MS.NET's Type Loader does not load a type which has
> more than one method marked with the same attribute:
>
> The sample
>
> class T
> {
> [OnDeserializing]
> void A (StreamingContext ctx)
> {
> }
>
> [OnDeserializing]
> void B (StreamingContext ctx)
> {
> }
> }
>
> leads to a TypeLoadException. The loader also checks whether
> the method has the proper signature.
>
> Where do we implement this?
Okay, MS.NET's PEVerify reports this as an error as well, so I guess
it should be done in Mono's verifier. Any objections?
Robert
More information about the Mono-devel-list
mailing list