摘要:
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) ... 阅读全文
摘要:
TABSYSMEMBER member = new TABSYSMEMBER();//空的实体对象 TABSYSMEMBER oldMember = new TABSYSMEMBER();//非空实体对象 PropertyInfo[] p = member.GetType().GetProperties(); PropertyInfo[] ps1 = oldMember.GetType().GetProperties(); int value = 1; ... 阅读全文