public T Read(string FileName) { T _ds = new T(); XmlSerialize se = new XmlSerialize(); Object obj = (Object)_ds; se.SerializeFromFile(FileName, ref obj); _ds = (T)obj; return(_ds); }
public void Write(string FileName, T t) { XmlSerialize se = new XmlSerialize(); se.SerializeToFile(FileName, t); }