Exemplo n.º 1
0
        } // !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()
Exemplo n.º 2
0
        } // !Save()

        public void Save(string filename)
        {
            OrderWriter writer = new OrderWriter();

            writer.Save(this, filename);
        } // !Save()
Exemplo n.º 3
0
        } // !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()
Exemplo n.º 4
0
        } // !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()