I have a CustomAttribute class that decorates properties and methods
in a class that is serialized with the .NET 2.0 XmlSerializer. I would
like to have these attributes interpreted as XML Comments and embedded
inline or at least at the top of the result document when it is
serialized.
How can I do this?
Thanks.
Random - 14 Feb 2007 21:28 GMT
I posted earlier today with a similar question about how to coerce automatic
behavior from custom attributes. In your case, have you tried having your
CustomAttribute class inherit from whatever attribute class would normally
identify a property or method as a comment? Then, you'd extend that class
to include your own properties you need in CustomAttribute. Might work.
> I have a CustomAttribute class that decorates properties and methods
> in a class that is serialized with the .NET 2.0 XmlSerializer. I would
[quoted text clipped - 5 lines]
>
> Thanks.
WenYuan Wang - 16 Feb 2007 10:18 GMT
Hi Lucius,
Thanks for your post.
I just want to check if the issue has been resolved.
If there is anything unclear or you have any concern on this, please feel
free to reply me and we will follow up.
Have a great day.
Sincerely,
Wen Yuan