Class Observable<T>
public abstract class Observable<T>
Type Parameters
T
- Inheritance
-
Observable<T>
- Derived
Constructors
Observable(T)
protected Observable(T initialValue)
Parameters
initialValue
T
Properties
Value
public T Value { get; }
Property Value
- T
Methods
Subscribe(IObserver<T>)
public void Subscribe(IObserver<T> observer)
Parameters
observer
IObserver<T>
Unsubscribe(IObserver<T>)
public void Unsubscribe(IObserver<T> observer)
Parameters
observer
IObserver<T>
UpdateValue(T)
public void UpdateValue(T newValue)
Parameters
newValue
T