Class IObservableListEx
- Namespace
- DynamicData.Binding
- Assembly
- DynamicData.dll
Extensions to convert a dynamic stream out to an IObservableList<T>.
public static class IObservableListEx
- Inheritance
-
IObservableListEx
Methods
BindToObservableList<TObject>(IObservable<IChangeSet<TObject>>, out IObservableList<TObject>)
Binds the results to the specified IObservableList<T>. Unlike binding to a ReadOnlyObservableCollection<T> which loses the ability to refresh items, binding to an IObservableList<T>. allows for refresh changes to be preserved and keeps the list read-only.
public static IObservable<IChangeSet<TObject>> BindToObservableList<TObject>(this IObservable<IChangeSet<TObject>> source, out IObservableList<TObject> observableList) where TObject : notnull
Parameters
source
IObservable<IChangeSet<TObject>>The source.
observableList
IObservableList<TObject>The output observable list.
Returns
- IObservable<IChangeSet<TObject>>
The
source
change set for continued chaining.
Type Parameters
TObject
The type of the object.
Exceptions
- ArgumentNullException
source.
BindToObservableList<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>, out IObservableList<TObject>)
Binds the results to the specified IObservableList<T>. Unlike binding to a ReadOnlyObservableCollection<T> which loses the ability to refresh items, binding to an IObservableList<T>. allows for refresh changes to be preserved and keeps the list read-only.
public static IObservable<IChangeSet<TObject, TKey>> BindToObservableList<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source, out IObservableList<TObject> observableList) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet<TObject, TKey>>The source.
observableList
IObservableList<TObject>The observable list which is the output.
Returns
- IObservable<IChangeSet<TObject, TKey>>
The
source
change set for continued chaining.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- ArgumentNullException
source.
BindToObservableList<TObject, TKey>(IObservable<ISortedChangeSet<TObject, TKey>>, out IObservableList<TObject>)
Binds the results to the specified IObservableList<T>. Unlike binding to a ReadOnlyObservableCollection<T> which loses the ability to refresh items, binding to an IObservableList<T>. allows for refresh changes to be preserved and keeps the list read-only.
public static IObservable<ISortedChangeSet<TObject, TKey>> BindToObservableList<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source, out IObservableList<TObject> observableList) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<ISortedChangeSet<TObject, TKey>>The source.
observableList
IObservableList<TObject>The output observable list.
Returns
- IObservable<ISortedChangeSet<TObject, TKey>>
The
source
change set for continued chaining.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- ArgumentNullException
source.