public void WriteXml(string fileName, CultureInfo cultureInfo)
        {
            if (fileName == null)
            {
                throw new ArgumentNullException("fileName");
            }
            if (cultureInfo == null)
            {
                throw new ArgumentNullException("cultureInfo");
            }
            InfoWriter writer = null;

            try
            {
                writer = new InfoWriter(fileName, cultureInfo);
                this.WriteXml(writer, cultureInfo);
            }
            finally
            {
                if (writer != null)
                {
                    try
                    {
                        writer.Close();
                    }
                    catch
                    {
                    }
                    writer = null;
                }
            }
        }
        public void WriteXml(XmlWriter writer, CultureInfo cultureInfo)
        {
            if (writer == null)
            {
                throw new ArgumentNullException("writer");
            }
            if (cultureInfo == null)
            {
                throw new ArgumentNullException("cultureInfo");
            }
            InfoWriter writer2 = null;

            try
            {
                writer2 = new InfoWriter(writer, cultureInfo);
                this.WriteXml(writer2, cultureInfo);
            }
            finally
            {
                if (writer2 != null)
                {
                    try
                    {
                        writer2.Close();
                    }
                    catch
                    {
                    }
                    writer2 = null;
                }
            }
        }
        public void WriteXml(Stream outStream, CultureInfo cultureInfo)
        {
            if ((outStream == null) || (outStream == Stream.Null))
            {
                throw new ArgumentNullException("outStream");
            }
            if (cultureInfo == null)
            {
                throw new ArgumentNullException("cultureInfo");
            }
            InfoWriter writer = null;

            try
            {
                writer = new InfoWriter(outStream, cultureInfo);
                this.WriteXml(writer, cultureInfo);
            }
            finally
            {
                if (writer != null)
                {
                    try
                    {
                        writer.Close();
                    }
                    catch
                    {
                    }
                    writer = null;
                }
            }
        }