Method AdjustProperty
AdjustProperty(string, Property)
Adjust the value of the property with the given key
by adding the given change
to its current value.
Work only with numeric properties.
Declaration
public Property AdjustProperty(string key, Property change)
Parameters
Type | Name | Description |
---|---|---|
string | key | Identifier of the property to get the value of. |
Property | change | Change to apply to the current value of the property. |
Returns
Type | Description |
---|---|
Property | The new value of the property. |
Exceptions
Type | Condition |
---|---|
ArgumentException | If the |
NullReferenceException | If this item has been discarded. |
PropertyNotFoundException | If there is no property with the given |
InvalidOperationException | Thrown if the property's type isn't a numeric type. |