public override void Save(string fileName) { Serialization.SaveToFile(this, fileName); }
//[OnDeserialized()] //private void OnDeserializedMething(StreamingContext context) //{ // if (FeederPara.FeederMode == null) // { // NuzzleForbit = new List<bool>() { true,false }; // } //} public override void Load(string fileName) { object obj = Serialization.LoadFromFile(fileName); CopyValue(this, obj); }