mp
2016-12-12 21:32:46 UTC
as I read the help files, if i want all the classes(data) to be stored
from one program run to the next I need to put [Serializable()] in front
of each class definition...is that right? or if i have a master
container class that holds all instances of subobjects can that one
class be serializable and not all the individual classes?
[Serializable()]
class Building {...contains all BuildingComponent objects ...}
...not sure how it will contain them, maybe a List object?...
in any case the help file shows one object writing to one file.
I would want x objects all writing to one file
foreach object in container
object.WriteToMasterfile
however the help files on writing to xml file do not show the book class
with the serializable attribute so i'm confused
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
from one program run to the next I need to put [Serializable()] in front
of each class definition...is that right? or if i have a master
container class that holds all instances of subobjects can that one
class be serializable and not all the individual classes?
[Serializable()]
class Building {...contains all BuildingComponent objects ...}
...not sure how it will contain them, maybe a List object?...
in any case the help file shows one object writing to one file.
I would want x objects all writing to one file
foreach object in container
object.WriteToMasterfile
however the help files on writing to xml file do not show the book class
with the serializable attribute so i'm confused
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus