|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
XmlSerializer and Custom Attribute Inclusion?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. 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. |
|||||||||||||||||||||||