Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / February 2007

Tip: Looking for answers? Try searching our database.

XmlSerializer and Custom Attribute Inclusion?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lucius - 14 Feb 2007 19:30 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.