foreach (PropertyInfo prop in typeof(PetInfo).GetProperties())
{
if (prop.CanRead && prop.CanWrite)
prop.SetValue(request, prop.GetValue(pet, null), null);
}
result = request;
posted on 2017-08-21 10:07 呼呼net 阅读(91) 评论(0) 编辑 收藏 举报