LightweightObservableBase<T> Class
Definition
Lightweight base class for observable implementations.
public class LightweightObservableBase<T>
Remarks
This is an experimental API that is subject to change or removal without notice.
ObservableBase{T} is rather heavyweight in terms of allocations and memory usage. This class provides a more lightweight base for some internal observable types in the Avalonia framework.
Methods
| Name | Description |
|---|---|
| Subscribe | No summary available. |
Subscribe Method
public IDisposable Subscribe(IObserver<T> observer)
Parameters
observer IObserver<T>
Returns
IDisposable
Properties
| Name | Description |
|---|---|
| HasObservers | Gets a value indicating whether this observable has any observers. |
HasObservers Property
Gets a value indicating whether this observable has any observers.
public bool HasObservers { get; set; }