Guys,

I need to emit an XmlElementAttribute on the return parameter of a method.

Googling seems to indicate that there is a bug in the framework preventing retrieval 
of the return parameter using the MethodBuilder.DefineParameter() and that the 
workaround is to emit the attribute directly on the method. In my instance this does 
not work because XmlElementAttribute is only allowed on properties and parameters and 
is therefore ignored by the serializers.

Does anyone know of a way to get an attribute onto the return parameter using 
Reflect/Emit?

Thanks,

Mark Bugeja

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to