Esempio n. 1
0
        public EquipmentPropViewModel newEquipmentPropViewModel()
        {
            EquipmentPropViewModel item = new EquipmentPropViewModel();
            Type type1 = typeof(EffectProp);

            foreach (var propInfo in type1.GetProperties())
            {
                item.SetPropertyValue(propInfo.Name, propInfo.GetValue(this));
            }
            return(item);
        }
Esempio n. 2
0
 public EquipmentPropViewModel newEquipmentPropViewModel()
 {
     EquipmentPropViewModel item = new EquipmentPropViewModel();
     Type type1 = typeof(EquipmentProp);
     foreach (var propInfo in type1.GetProperties())
     {
         item.SetPropertyValue(propInfo.Name,propInfo.GetValue(this));
     }
     return item;
 }