private void button3_Click(object sender, EventArgs e) { //testa s = new testa(); //s.aaad = new List<rsfc>(); //s.aaad.Add(new rsfc() { ti = DateTime.Now }); //s.aaad.Add(new rsfc() { ti = DateTime.Now }); //s.aaad.Add(new rsfc() { ti = DateTime.Now }); //s.aaad.Add(new rsfc() { ti = DateTime.Now }); //s.aaad.Add(new rsfc() { ti = DateTime.Now }); //NormalIO.XmlSerialize<testa>(@"F:\SourceCode\Application\Exgis\SSMTool\CSFv0.2\asdf.xml", Encoding.UTF8, s); string aa = ProteinHandler.GetExtendConfig <testa>().a1; }
/// <summary> /// 保存扩展配置 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="Obj"></param> public static void SaveExtendConfig <T>(T Obj) { ProteinHandler.SetExtendConfig <T>(Obj); }
/// <summary> /// 获取扩展配置 /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public static T GetExtendConfig <T>() { return(ProteinHandler.GetExtendConfig <T>()); }