Home All Groups Group Topic Archive Search About

XmlSerializer and Custom Attribute Inclusion?

Author
14 Feb 2007 7:30 PM
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.

Author
14 Feb 2007 9:28 PM
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.


Show quote
"lucius" <lucius@newsgroup.nospam> wrote in message
news:hmo6t29s8526gbenj9ng73mp0gpo7op8ss@4ax.com...
>
> 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.
Author
16 Feb 2007 10:18 AM
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

AddThis Social Bookmark Button