摘要: public static T XmlDataToModel(String xmlData) { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(xmlData); XmlElement element = xmlDoc.DocumentElement; T objModel = System.Activator.CreateInstance(); foreach (XmlNode childNode in element.ChildNodes) ... 阅读全文
posted @ 2013-10-29 15:54 李贰白 阅读(2080) 评论(0) 推荐(0) 编辑
摘要: TABSYSMEMBER member = new TABSYSMEMBER();//空的实体对象 TABSYSMEMBER oldMember = new TABSYSMEMBER();//非空实体对象 PropertyInfo[] p = member.GetType().GetProperties(); PropertyInfo[] ps1 = oldMember.GetType().GetProperties(); int value = 1; ... 阅读全文
posted @ 2013-10-29 15:44 李贰白 阅读(2424) 评论(0) 推荐(0) 编辑