J
Jeff Jarrell
I am still getting started in dotNet so i don't know what approach to follow
in terms of saving data to an xml file. The data i want to save is a set of
statistics about an event. The statistics can be instances of base "stat"
or it can be a derived class from "stat" which is more complex. My object
here is to have an approach for the writeStats method.
ParentClass
stat()
HandsPlayed (an instance of stat)
HandsWon (an instance of stat)
WinningPercentage (a derived class from stat)
writeStats
initialize xmlfile
for each stat
AddToXml
next
close xmlfile
Serialization may not be the way to go. Seems simpler to just add nodes to
an xml DOM. But thats the old me. What would the dotNet way be in this
situation.
thanks,
jeff
in terms of saving data to an xml file. The data i want to save is a set of
statistics about an event. The statistics can be instances of base "stat"
or it can be a derived class from "stat" which is more complex. My object
here is to have an approach for the writeStats method.
ParentClass
stat()
HandsPlayed (an instance of stat)
HandsWon (an instance of stat)
WinningPercentage (a derived class from stat)
writeStats
initialize xmlfile
for each stat
AddToXml
next
close xmlfile
Serialization may not be the way to go. Seems simpler to just add nodes to
an xml DOM. But thats the old me. What would the dotNet way be in this
situation.
thanks,
jeff