HighTechTalks DotNet Forums  

XmlSerializer and Custom Attribute Inclusion?

Dotnet Framework microsoft.public.dotnet.framework


Discuss XmlSerializer and Custom Attribute Inclusion? in the Dotnet Framework forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
lucius
 
Posts: n/a

Default XmlSerializer and Custom Attribute Inclusion? - 02-14-2007 , 02:30 PM







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.

Reply With Quote
  #2  
Old   
Random
 
Posts: n/a

Default Re: XmlSerializer and Custom Attribute Inclusion? - 02-14-2007 , 04:28 PM






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.


"lucius" <lucius (AT) newsgroup (DOT) nospam> wrote

Quote:
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.



Reply With Quote
  #3  
Old   
WenYuan Wang
 
Posts: n/a

Default RE: XmlSerializer and Custom Attribute Inclusion? - 02-16-2007 , 05:18 AM



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


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.