public void SaveToFileStream(FileStream f) { lock (this) { var oos = new BinaryFormatter(); oos.Serialize(f, this); } }