SetValue() public method

public SetValue ( object root, object value, object index ) : void
root object
value object
index object
return void
コード例 #1
0
        internal void SetValue(object value, INPCBinding.PropertyPath property)
        {
            if (_value == null)
            {
                return;
            }

            property.SetValue(_value, value, null);
        }
コード例 #2
0
        internal void SetValue(object value, INPCBinding.PropertyPath property)
        {
            if (_value == null)
            {
                //Debug.LogErrorFormat("Cannot set value for {0}. DataContext on {1} has no value", property, name);
                return;
            }

            property.SetValue(_value, value, null);
        }