Class SourceListEx
- Namespace
- Dynamic
Data
- Assembly
- DynamicData.dll
Source list extensions.
- Inheritance
-
Source
List Ex
Methods
Cast<TSource, TDestination>(ISourceList<TSource>, Func<TSource, TDestination>)
Connects to the list, and converts the changes to another form.
Alas, I had to add the converter due to type inference issues.
public static IObservable<IChangeSet<TDestination>> Cast<TSource, TDestination>(this ISourceList<TSource> source, Func<TSource, TDestination> conversionFactory) where TSource : notnull where TDestination : notnull
Parameters
source
ISourceList <TSource>The source.
conversionFactory
Func<TSource, TDestination>The conversion factory.
Returns
- IObservable<IChange
Set <TDestination>> An observable which emits that change set.
Type Parameters
TSource
The type of the object.
TDestination
The type of the destination.