public override void SetValue(object component, object value) { bool result; if (component is IPropBagInternal ipbi) { ExKeyT compKey = new SimpleExKey(ipbi.ObjectId, PropId); result = _psFastAccessService.SetValueFast(compKey, _propItemSetKey, value); } else { result = _psFastAccessService.SetValueFast((T)component, PropId, _propItemSetKey, value); } }
public override object GetValue(object component) { //ReportAccessCounter(); object result; if (component is IPropBagInternal ipbi) { ExKeyT compKey = new SimpleExKey(ipbi.ObjectId, PropId); result = _psFastAccessService.GetValueFast(compKey, _propItemSetKey); } else { result = _psFastAccessService.GetValueFast((T)component, PropId, _propItemSetKey); } return(result); }