Method ChangeKeyDynamically
ChangeKeyDynamically<TObject, TSourceKey, TSource, TDestinationKey>(IObservable<IChangeSet<TObject, TSourceKey>>, Expression<Func<TObject, TSource>>, Expression<Func<TObject, TDestinationKey>>)
Declaration
public static IObservable<IChangeSet<TObject, TDestinationKey>> ChangeKeyDynamically<TObject, TSourceKey, TSource, TDestinationKey>(this IObservable<IChangeSet<TObject, TSourceKey>> source, Expression<Func<TObject, TSource>> keySourceSelectorExpression, Expression<Func<TObject, TDestinationKey>> keySelectorExpression) where TObject : INotifyPropertyChanged where TSourceKey : notnull where TDestinationKey : notnull
Parameters
Type |
Name |
Description |
IObservable<IChangeSet<TObject, TSourceKey>> |
source |
|
Expression<Func<TObject, TSource>> |
keySourceSelectorExpression |
|
Expression<Func<TObject, TDestinationKey>> |
keySelectorExpression |
|
Returns
Type |
Description |
IObservable<IChangeSet<TObject, TDestinationKey>> |
|
Type Parameters
Name |
Description |
TObject |
|
TSourceKey |
|
TSource |
|
TDestinationKey |
|
ChangeKeyDynamically<TObject, TSourceKey, TDestinationKey>(IObservable<IChangeSet<TObject, TSourceKey>>, Expression<Func<TObject, TDestinationKey>>, out IObservableCache<TObject, TDestinationKey>)
Declaration
public static IDisposable ChangeKeyDynamically<TObject, TSourceKey, TDestinationKey>(this IObservable<IChangeSet<TObject, TSourceKey>> source, Expression<Func<TObject, TDestinationKey>> keySelectorExpression, out IObservableCache<TObject, TDestinationKey> cacheWithChangedKey) where TObject : INotifyPropertyChanged where TSourceKey : notnull where TDestinationKey : notnull
Parameters
Type |
Name |
Description |
IObservable<IChangeSet<TObject, TSourceKey>> |
source |
|
Expression<Func<TObject, TDestinationKey>> |
keySelectorExpression |
|
IObservableCache<TObject, TDestinationKey> |
cacheWithChangedKey |
|
Returns
Type Parameters
Name |
Description |
TObject |
|
TSourceKey |
|
TDestinationKey |
|