Click here to Skip to main content
15,915,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
Not Active29-Feb-08 11:10
mentorNot Active29-Feb-08 11:10 
GeneralRe: Textbox AutoCompleteCustomSource of classes Pin
DaveyM6929-Feb-08 10:46
professionalDaveyM6929-Feb-08 10:46 
General"Executing" data file Pin
hain29-Feb-08 8:59
hain29-Feb-08 8:59 
AnswerRe: "Executing" data file Pin
Guffa29-Feb-08 9:42
Guffa29-Feb-08 9:42 
GeneralRe: "Executing" data file [modified] Pin
hain29-Feb-08 10:57
hain29-Feb-08 10:57 
GeneralLooping for 60 seconds Pin
jimmy2shoes29-Feb-08 8:16
jimmy2shoes29-Feb-08 8:16 
GeneralRe: Looping for 60 seconds Pin
Not Active29-Feb-08 8:38
mentorNot Active29-Feb-08 8:38 
GeneralSerialization Pin
geekfromindia29-Feb-08 7:09
geekfromindia29-Feb-08 7:09 
hi All,

I am trying to serialize a class with some composite classes.

heres the sample of XML I need

<classA>
     <date>today</date>
     <classB>
        <name>Vicky</name>
        <classC> 
           <name>Amber</name>
        </classC>
     </classB>
</classA>


Now I am accessing ClassB as property of ClassA, initializing in ClassA's Constructor.
Same way..classC will be initialized in ClassB's constructor and accessible through a property.

Now when I am trying to serialize I am not getting ClassB and ClassC...all classes and properties are public.
I am getting

<classA>
    <date>today</date>
</classA>



Any suggestions???

Keep DotNetting!!

GeekFromIndia

GeneralRe: Serialization Pin
Skippums29-Feb-08 7:14
Skippums29-Feb-08 7:14 
GeneralRe: Serialization Pin
geekfromindia29-Feb-08 10:40
geekfromindia29-Feb-08 10:40 
GeneralGps guided vehicle Pin
RED FOX29-Feb-08 6:53
RED FOX29-Feb-08 6:53 
Generaltimer for 5 seconds. Pin
tingu29-Feb-08 5:56
tingu29-Feb-08 5:56 
GeneralRe: timer for 5 seconds. Pin
led mike29-Feb-08 6:17
led mike29-Feb-08 6:17 
GeneralRe: timer for 5 seconds. Pin
Not Active29-Feb-08 6:19
mentorNot Active29-Feb-08 6:19 
QuestionAll methods called when class instantiated? Pin
stuebbie29-Feb-08 4:48
stuebbie29-Feb-08 4:48 
AnswerRe: All methods called when class instantiated? Pin
led mike29-Feb-08 5:04
led mike29-Feb-08 5:04 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:17
stuebbie29-Feb-08 5:17 
GeneralRe: All methods called when class instantiated? [modified] Pin
led mike29-Feb-08 5:54
led mike29-Feb-08 5:54 
AnswerRe: All methods called when class instantiated? Pin
Not Active29-Feb-08 5:07
mentorNot Active29-Feb-08 5:07 
GeneralRe: All methods called when class instantiated? Pin
led mike29-Feb-08 5:10
led mike29-Feb-08 5:10 
GeneralRe: All methods called when class instantiated? Pin
Not Active29-Feb-08 5:27
mentorNot Active29-Feb-08 5:27 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:29
stuebbie29-Feb-08 5:29 
GeneralRe: All methods called when class instantiated? Pin
stuebbie29-Feb-08 5:34
stuebbie29-Feb-08 5:34 
GeneralRe: All methods called when class instantiated? Pin
Guffa29-Feb-08 6:06
Guffa29-Feb-08 6:06 
GeneralRe: All methods called when class instantiated? Pin
J4amieC29-Feb-08 6:22
J4amieC29-Feb-08 6:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.