Class SourceList<T>
- Namespace
- Dynamic
Data
- Assembly
- DynamicData.dll
An editable observable list.
public sealed class SourceList<T> : ISourceList<T>, IObservableList<T>, IDisposable where T : notnull
Type Parameters
T
The type of the object.
- Inheritance
-
SourceList<T>
- Implements
-
ISource
List <T>
- Extension Methods
Constructors
SourceList(IObservable<IChangeSet<T>>?)
Initializes a new instance of the SourceList<T> class.
Parameters
source
IObservable<IChangeSet <T>>The source.
Properties
Count
Gets the count.
Property Value
CountChanged
Gets observe the count changes, starting with the initial items count.
Property Value
Items
Gets items enumerable.
Property Value
Methods
Connect(Func<T, bool>?)
Connect to the observable list and observe any changes starting with the list's initial items.
Parameters
Returns
- IObservable<IChange
Set <T>> An observable which emits the change set.
Dispose()
Edit(Action<IExtendedList<T>>)
Edit the inner list within the list's internal locking mechanism.
Parameters
updateAction
Action<IExtendedList <T>>The update action.
Preview(Func<T, bool>?)
Connect to the observable list and observe any changes before they are applied to the list. Unlike Connect(), the returned observable is not prepended with the lists initial items.
Parameters
Returns
- IObservable<IChange
Set <T>> An observable which emits the change set.