Class FixedObservableValue<T>
- Namespace
- CarinaStudio
- Assembly
- CarinaStudio.AppBase.Core.dll
Implementation of IObservable<T> with fixed value.
public class FixedObservableValue<T> : FixedObservableValue, IObservable<T>
Type Parameters
T
Type of value.
- Inheritance
-
FixedObservableValue<T>
- Implements
-
IObservable<T>
- Inherited Members
- Extension Methods
Constructors
FixedObservableValue(T)
Initialize new FixedObservableValue<T> instance.
public FixedObservableValue(T value)
Parameters
value
TValue.
Properties
Value
Get value.
public T Value { get; }
Property Value
- T
Methods
Subscribe(IObserver<T>)
Notifies the provider that an observer is to receive notifications.
public IDisposable Subscribe(IObserver<T> observer)
Parameters
observer
IObserver<T>The object that is to receive notifications.
Returns
- IDisposable
A reference to an interface that allows observers to stop receiving notifications before the provider has finished sending them.