using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml.Serialization;
publicstaticclass SerilizationHelper
{
publicstaticvoid Serilize<T>(this T obj, string path)
{
var writter = File.OpenWrite(path);
XmlSerializer serilizer = new XmlSerializer(typeof(T));
serilizer.Serialize(writter, obj);
writter.Close();
}
}