Unfortunately, it's not fixed in SP1 either. You can't emit a parameter record for the return type using Reflection.Emit v1.x
Thanks, Serge -----Original Message----- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Jeroen Frijters Sent: Monday, September 06, 2004 3:09 AM To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Emitting an attribute on a method's return parameter Mark Bugeja wrote: > Thanks for the input guys, but the actual type of the element > is not the source of our problem. > > For the moment, ignore that I ever mentioned > XmlElementAttribute... What I need to know is if there is any > way to apply an attribute to the return parameter of a method > generated using the Reflection.Emit classes. > > I'm guessing that the answer is no and that it was an > oversight in the design of the ClassBuilder & MethodBuilder > classes, but I was hoping that someone had discovered a > roundabout way of achieving the same end. Unfortunately there is no workaround. Not helpful, but it's fixed in Whidbey (I don't know if it's fixed in SP1). Regards, Jeroen =================================== 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 =================================== 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