Example #1
0
 public static void Serialize(FtMeta meta, string outputFilePath, XmlWriterSettings writerSettings)
 {
     using (XmlWriter xmlWriter = XmlWriter.Create(outputFilePath, writerSettings))
     {
         XmlMetaSerializationWriter serializationWriter = new XmlMetaSerializationWriter();
         serializationWriter.Write(xmlWriter, meta);
     }
 }
Example #2
0
        public static void Serialize(FtMeta meta, string outputFilePath)
        {
            StreamWriter streamWriter = null;

            try
            {
                streamWriter = new StreamWriter(outputFilePath);
                using (XmlWriter xmlWriter = XmlWriter.Create(streamWriter))
                {
                    streamWriter = null;
                    XmlMetaSerializationWriter serializationWriter = new XmlMetaSerializationWriter();
                    serializationWriter.Write(xmlWriter, meta);
                }
            }
            finally
            {
                if (streamWriter != null)
                {
                    streamWriter.Dispose();
                }
            }
        }
Example #3
0
        public static void Serialize(FtMeta meta, XmlWriter xmlWriter)
        {
            XmlMetaSerializationWriter serializationWriter = new XmlMetaSerializationWriter();

            serializationWriter.Write(xmlWriter, meta);
        }