获取实体属性 Type type = family.GetType(); //family为实体对象 PropertyInfo[] infos = type.GetProperties(); foreach (PropertyInfo info in infos){ info.GetValue(family); //取值 info.SetValue(bFamily, info.GetValue(family)); //赋值 }