Class BindingListEx
- Namespace
- Dynamic
Data .Binding
- Assembly
- DynamicData.dll
Extensions to convert an binding list into a dynamic stream.
- Inheritance
-
Binding
List Ex
Methods
ObserveCollectionChanges(IBindingList)
Observes list changed args.
public static IObservable<EventPattern<ListChangedEventArgs>> ObserveCollectionChanges(this IBindingList source)
Parameters
sourceIBindingList The source list.
Returns
- IObservable<Event
Pattern <ListChanged >>Event Args 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
sourceBindingList <T>The source.
Returns
- IObservable<IChange
Set <T>> An observable which emits change set values.
Type Parameters
TThe type of the object.
Exceptions
- Argument
Null Exception 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
sourceBindingList <TObject>The source.
keySelectorFunc<TObject, TKey>The key selector.
Returns
- IObservable<IChange
Set <TObject, TKey>> An observable which emits change set values.
Type Parameters
TObjectThe type of the object.
TKeyThe type of the key.
Exceptions
- Argument
Null Exception 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
sourceTCollectionThe source.
Returns
- IObservable<IChange
Set <T>> An observable which emits change set values.
Type Parameters
TCollectionThe collection type.
TThe type of the object.
Exceptions
- Argument
Null Exception source.