GIDForums  

Go Back   GIDForums > Computer Programming Forums > .NET Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Aug-2009, 02:58
ampo ampo is offline
New Member
 
Join Date: Oct 2008
Posts: 3
ampo is on a distinguished road

Serialisation - OOP issue


Hello.

I have class "A" that needs to creat another class "B".
In one case, class "B" needs to have one attribute/field and in another case two attributes/fields.

I thought to split class "B" into two classes "C" and "D" that one will have one attribute ant the other one two. constructor of "A" will know which to create.

so far - so good.

now I need to serialize the whole thing.
in the output xml, "C" or "D" must have the same node name.

How can I do this?
Any other options I have?

Thanks.
 
 

Recent GIDBlogAccepted for Ph.D. program by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown issue rockyford1000 PHP Code Library 0 06-Aug-2007 21:55
pointer/memory issue acosgaya C++ Forum 1 09-Feb-2007 12:50
Simple syntax issue with Header file for my class. zermeno68 C++ Forum 3 16-Sep-2006 10:19
d3d sprite issue markhuntley C++ Forum 0 28-Jun-2006 13:21
how to issue dos command from c program jaininaveen C Programming Language 2 03-Mar-2006 11:02

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 12:18.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.