NormalModel model =new Normal(){Id="001",Name="dp"}; Type type = model.GetType(); //获取类型 foreach (PropertyInfo pi in type.GetProperties()) { result += pi.Name + "=" + pi.GetValue(model, null) + "&"; }