public override void SetValue(object component, object value) { var obj = ((BusDeviceProxy)component).Device; var propInfo = ComponentType.GetProperty(Name); propInfo.SetValue(obj, Convert.ChangeType(value, propInfo.PropertyType), null); }
public override object GetValue(object component) { var obj = ((BusDeviceProxy)component).Device; return(ComponentType .GetProperty(Name) .GetValue(obj, null)); }
public override void SetValue(object component, object value) { ComponentType.GetProperty(_Name).SetValue(Component, value, null); }