XmlSerializer and Custom Attribute Inclusion?

L

lucius

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.
 
R

Random

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.
 
W

WenYuan Wang

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top