예제 #1
0
            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);
            }
예제 #2
0
            public override object GetValue(object component)
            {
                var obj = ((BusDeviceProxy)component).Device;

                return(ComponentType
                       .GetProperty(Name)
                       .GetValue(obj, null));
            }
예제 #3
0
 public override void SetValue(object component, object value)
 {
     ComponentType.GetProperty(_Name).SetValue(Component, value, null);
 }