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)); } }
public Object copyObject(Saveable source) { lastLoadedObject = null; saveControl.saveObject(source); loadControl.reset(); saveControl.reset(); return(lastLoadedObject); }