} // !Save() /// <summary> /// Saves the order into the given file. /// </summary> /// <param name="fileName"></param> /// <param name="generatorInfo"></param> public void Save(string fileName, string generatorInfo = null) { OrderWriter writer = new OrderWriter(); writer.Save(this, fileName, generatorInfo); } // !Save()
} // !Save() public void Save(string filename) { OrderWriter writer = new OrderWriter(); writer.Save(this, filename); } // !Save()
} // !Load() /// <summary> /// Saves the order object into a stream. /// /// The stream position will be reset to the original position after writing is finished. /// This allows easy further processing of the stream. /// </summary> /// <param name="stream"></param> /// /// <param name="generatorInfo"></param> public void Save(Stream stream, string generatorInfo = null) { OrderWriter writer = new OrderWriter(); writer.Save(this, stream, generatorInfo); } // !Save()
} // !Load() /// <summary> /// Saves the descriptor object into a stream. /// /// The stream position will be reset to the original position after writing is finished. /// This allows easy further processing of the stream. /// </summary> /// <param name="stream"></param> public void Save(Stream stream) { OrderWriter writer = new OrderWriter(); writer.Save(this, stream); } // !Save()