2013年8月13日
摘要: 由于近来项目的底层架构某些特殊需求及场景的需要要求动态build一个对象,属性名称个类与类型都是外界动态传入的。不多说废话,直接上我最原始的代码: 1 public static Type GetMyType() 2 { 3 string[] namelist = new string[] { "UserName", "UserID" }; 4 Dictionary dic = new Dictionary(); 5 dic.Add("UserName", typeof(string)); ... 阅读全文
posted @ 2013-08-13 10:17 梦回西夏 阅读(1476) 评论(2) 推荐(1) 编辑