Method | Description | |
---|---|---|
Expression ( object value, bool canChange ) : System |
Initializes and instance of an Expression.
|
|
GetValue ( ) : object |
Gets the current value of the expression.
|
|
SetValue ( object value ) : void |
Sets the value of the expression. Most expressions are read-only and ignore this call, but some expressions do support the ability to write back.
|
|
Subscribe ( System.Action changeCallback ) : void |
Allows a consumer of the expression to subscribe to change notifications.
|
Method | Description | |
---|---|---|
UpdateValue ( object value, bool notify ) : void |
Updates the value represented by the expression.
|
public Expression ( object value, bool canChange ) : System | ||
value | object | The initial value of the expression. |
canChange | bool | Whether the expression represents a value that can change. |
return | System |
public SetValue ( object value ) : void | ||
value | object | The new value of the expression. |
return | void |
public Subscribe ( System.Action changeCallback ) : void | ||
changeCallback | System.Action | The callback to be invoked. |
return | void |
protected UpdateValue ( object value, bool notify ) : void | ||
value | object | The new value of the expression. |
notify | bool | Whether to notify the subscriber of the change. |
return | void |