[Mono-dev] [PATCH] NET_2_0 Serialization Callbacks

Robert Jordan robertj at gmx.net
Tue Jun 6 20:45:55 EDT 2006


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?

Robert




More information about the Mono-devel-list mailing list