예제 #1
0
        /// <summary>
        /// Exports the jsonified parsed content of the file.
        /// </summary>
        /// <param name="options"></param>
        /// <param name="fileName"></param>
        public virtual void Export(SerializerOptions options = null, string fileName = "")
        {
            options = options ?? new SerializerOptions();

            if (string.IsNullOrWhiteSpace(fileName))
            {
                fileName = Utils.GetExportFileName(FileName, options.Compression);
            }

            var _serializer = new Serializer.Serializer(options);

            _serializer.Export(fileName, this);
        }