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