//将saddle中每一个属性赋值给到WebPlate中的同名属性
   foreach (PropertyInfo info in saddle.GetType().GetProperties())
   {
    try
    {
     string objString = info.Name;
     object objValue = saddle.GetType().GetProperty(objString).GetValue(saddle, null);
     this.GetType().GetProperty(objString).SetValue(this, objValue, null);
    }
    catch
    {
    }
   }

相关文章:

  • 2021-05-31
  • 2022-12-23
  • 2022-02-07
  • 2021-11-12
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2022-02-07
  • 2021-08-28
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2021-09-10
相关资源
相似解决方案