Exemplo n.º 1
0
 public void AddValue(string name, Saveable value)
 {
     if (value != null)
     {
         validate(name, value);
         long objectID = writer.saveObject(value);
         entries.Add(name, new SaveEntry(name, value, value.GetType(), objectID));
     }
 }
Exemplo n.º 2
0
 public Object copyObject(Saveable source)
 {
     lastLoadedObject = null;
     saveControl.saveObject(source);
     loadControl.reset();
     saveControl.reset();
     return(lastLoadedObject);
 }