Class BindingListEx
- Namespace
- DynamicData.Binding
- Assembly
- DynamicData.dll
Extensions to convert an binding list into a dynamic stream.
public static class BindingListEx
- Inheritance
-
BindingListEx
Methods
ObserveCollectionChanges(IBindingList)
Observes list changed args.
public static IObservable<EventPattern<ListChangedEventArgs>> ObserveCollectionChanges(this IBindingList source)
Parameters
source
IBindingListThe source list.
Returns
- IObservable<EventPattern<ListChangedEventArgs>>
An observable which emits event pattern changed event args.
ToObservableChangeSet<T>(BindingList<T>)
Convert a binding list into an observable change set. Change set observes list change events.
public static IObservable<IChangeSet<T>> ToObservableChangeSet<T>(this BindingList<T> source) where T : notnull
Parameters
source
BindingList<T>The source.
Returns
- IObservable<IChangeSet<T>>
An observable which emits change set values.
Type Parameters
T
The type of the object.
Exceptions
- ArgumentNullException
source.
ToObservableChangeSet<TObject, TKey>(BindingList<TObject>, Func<TObject, TKey>)
Convert a binding list into an observable change set. Change set observes list change events.
public static IObservable<IChangeSet<TObject, TKey>> ToObservableChangeSet<TObject, TKey>(this BindingList<TObject> source, Func<TObject, TKey> keySelector) where TObject : notnull where TKey : notnull
Parameters
source
BindingList<TObject>The source.
keySelector
Func<TObject, TKey>The key selector.
Returns
- IObservable<IChangeSet<TObject, TKey>>
An observable which emits change set values.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- ArgumentNullException
source or keySelector.
ToObservableChangeSet<TCollection, T>(TCollection)
Convert a binding list into an observable change set. Change set observes list change events.
public static IObservable<IChangeSet<T>> ToObservableChangeSet<TCollection, T>(this TCollection source) where TCollection : IBindingList, IEnumerable<T> where T : notnull
Parameters
source
TCollectionThe source.
Returns
- IObservable<IChangeSet<T>>
An observable which emits change set values.
Type Parameters
TCollection
The collection type.
T
The type of the object.
Exceptions
- ArgumentNullException
source.