コード例 #1
0
        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);
        }
コード例 #2
0
        public void Write(string FileName, T t)
        {
            XmlSerialize se = new XmlSerialize();

            se.SerializeToFile(FileName, t);
        }