LuciadCPillar C# 2024.0.02
|
This class makes it possible to hold and observe a value that can change over time. More...
Public Member Functions | |
Observable (T initialValue) | |
void | AddCallback (IInvalidationCallback callback) |
Adds a callback that is notified when Value is called. More... | |
void | RemoveCallback (IInvalidationCallback callback) |
Remove the given callback. More... | |
Static Public Member Functions | |
static Observable< T > | Create (T initialValue) |
Creates a new Observable with the given initial value. More... | |
Properties | |
T | Value [get, set] |
This class makes it possible to hold and observe a value that can change over time.
T | the type to hold |
|
inline |
|
inline |
Adds a callback that is notified when Value
is called.
callback | a callback |
System.ArgumentException | when the call back is already added. |
|
inlinestatic |
Creates a new Observable
with the given initial value.
initialValue | the initial value. |
|
inline |
Remove the given callback.
callback | a callback |
System.ArgumentException | when the call back is not known. |
|
getset |