Interface IObservableValue<T>
Interface for Observable values.
Inherited Members
Namespace: Cortex.Net
Assembly: Cortex.Net.dll
Syntax
public interface IObservableValue<T> : IValue<T>, IValue
Type Parameters
Name | Description |
---|---|
T | The type of the computed value. |
Methods
| Improve this Doc View SourceObserve(EventHandler<ValueChangedEventArgs<T>>, Boolean)
Registers the secified event handler, and optionally fires it first.
Declaration
void Observe(EventHandler<ValueChangedEventArgs<T>> changedEventHandler, bool fireImmediately)
Parameters
Type | Name | Description |
---|---|---|
EventHandler<ValueChangedEventArgs<T>> | changedEventHandler | The event handler to register. |
System.Boolean | fireImmediately | Whether to fire the event handler immediately. |
Events
| Improve this Doc View SourceChange
Event that fires before the value will change.
Declaration
event EventHandler<ValueChangeEventArgs<T>> Change
Event Type
Type | Description |
---|---|
EventHandler<ValueChangeEventArgs<T>> |
Changed
Event that fires after the value has changed.
Declaration
event EventHandler<ValueChangedEventArgs<T>> Changed
Event Type
Type | Description |
---|---|
EventHandler<ValueChangedEventArgs<T>> |