Table of Contents

Class SourceListEx

Namespace
DynamicData
Assembly
DynamicData.dll

Source list extensions.

public static class SourceListEx
Inheritance
SourceListEx

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<IChangeSet<TDestination>>

An observable which emits that change set.

Type Parameters

TSource

The type of the object.

TDestination

The type of the destination.