c# 读写XML文件 fs = new FileStream(fileName, FileMode.Create); try { XmlSerializer xsr = new XmlSerializer(typeof (T)); xsr.Serialize(fs, x); } catch (Exception ex) {