/// <summary> /// Deserialize options or creates an empty option class. /// </summary> private void Deserialize() { _optionStore = File.Exists(_dataFile) ? ClassSerialization.Load <Options>(_dataFile) : new Options(); }
zzSerializeObject() { classSerialization = new ClassSerialization(); classSerialization.serializeObject = this; }
/// <summary> /// Serialize options to a file. /// </summary> private void Serialize() { ClassSerialization.Save(_dataFile, _optionStore); }