摘要:
private object CloneObject(object o) { Type t = o.GetType(); PropertyInfo[] properties = t.GetProperties(); Object p = t.InvokeMember("", System.Reflection.BindingFlags.CreateInstance, null, o, null); foreach (PropertyInfo pi in properties) { if (pi.CanWrite) { pi.SetValue(p, pi.GetValue(o 阅读全文
posted @ 2011-08-18 16:24 leon_ALiang 阅读(212) 评论(0) 推荐(0)
浙公网安备 33010602011771号