Class EnumerableEx
- Namespace
- DynamicData
- Assembly
- DynamicData.dll
Extensions for dynamic data.
public static class EnumerableEx
- Inheritance
-
EnumerableEx
Methods
AsObservableChangeSet<TObject>(IEnumerable<TObject>, bool)
Converts the enumerable to an observable change set. Generates a snapshot in time based of enumerable.
public static IObservable<IChangeSet<TObject>> AsObservableChangeSet<TObject>(this IEnumerable<TObject> source, bool completable = false) where TObject : notnull
Parameters
source
IEnumerable<TObject>The source.
completable
boolOptionally emit an OnComplete.
Returns
- IObservable<IChangeSet<TObject>>
An observable change set.
Type Parameters
TObject
The type of the object.
Exceptions
- ArgumentNullException
source.
AsObservableChangeSet<TObject, TKey>(IEnumerable<TObject>, Func<TObject, TKey>, bool)
Converts the enumerable to an observable change set. Generates a snapshot in time based of enumerable.
public static IObservable<IChangeSet<TObject, TKey>> AsObservableChangeSet<TObject, TKey>(this IEnumerable<TObject> source, Func<TObject, TKey> keySelector, bool completable = false) where TObject : notnull where TKey : notnull
Parameters
source
IEnumerable<TObject>The source.
keySelector
Func<TObject, TKey>The key selector.
completable
boolOptionally emit an OnComplete.
Returns
- IObservable<IChangeSet<TObject, TKey>>
An observable change set.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- ArgumentNullException
source or keySelector.