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); }
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; }