static public Contract.Serialization TryGetSerialization(string key) { Contract.Serialization ser = null; flags.TryGetValue(key, out ser); if (ser == null) { Log.log("序列化器申请被拒绝:" + key); } return(ser); }
protected FuzzyData.FuzzyObject LoadXmlData(System.Xml.XmlNode Node) { Contract.Serialization xml = Help.SerializationManager.TryGetSerialization("[x]"); if (xml == null) { return(null); } try { Type type = xml.GetType(); System.Reflection.MethodInfo method = type.GetMethod("Load", new Type[] { typeof(XmlNode) }); object ob = method.Invoke(xml, new object[] { Node.FirstChild }); return(ob as FuzzyData.FuzzyObject); } catch (Exception ex) { Help.Log.log("ListView:载入 New 节点失败:" + ex.Message); } return(null); }