C#

Moderators: None (Apply to moderate this forum)
Number of threads: 2722
Number of posts: 5749

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Re: Seriliasation - OOP issue Posted by DataDink on 27 Aug 2009 at 2:32 PM
What you are describing with class A is a "factory" (Look up "Factory Pattern") and through Attributes you can control how things are displayed when serialized into XML.

However it's still a little unclear of what your goals are:

Can you describe what you are doing with the XML output?

Part of the point of serialization is to be able to be reconstructed - so if two different classes actually have the same name, then one of them will not be able to be re-constructed through typical deserialization. So there might be another solution for your needs if you want to give a little more information.
Thread Tree
am_po Seriliasation - OOP issue on 27 Aug 2009 at 12:58 AM
DataDink Re: Seriliasation - OOP issue on 27 Aug 2009 at 2:32 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.