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
sourceISourceList <TSource>The source.
conversionFactoryFunc<TSource, TDestination>The conversion factory.
Returns
- IObservable<IChange
Set <TDestination>> An observable which emits that change set.
Type Parameters
TSourceThe type of the object.
TDestinationThe type of the destination.