示例#1
0
 /// <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;
 }
示例#3
0
 /// <summary>
 /// Serialize options to a file.
 /// </summary>
 private void Serialize()
 {
     ClassSerialization.Save(_dataFile, _optionStore);
 }