Пример #1
0
 public static void WriteObject(Stream stream, object obj)
 {
     using (var coder = new XmlWritingCoder(stream))
         coder.Code(ref obj);
 }
Пример #2
0
 public static void WriteObject(string fileName, object obj)
 {
     using (var coder = new XmlWritingCoder(fileName))
         coder.Code(ref obj);
 }