Show / Hide Table of Contents

Class ObservableChangeSetExtensions

Extension methods for binding to observable changeset instances.

Inheritance
System.Object
ObservableChangeSetExtensions
Namespace: Cortex.Net.DynamicData
Assembly: Cortex.Net.DynamicData.dll
Syntax
public static class ObservableChangeSetExtensions : object

Methods

| Improve this Doc View Source

CortexBind<T>(IObservable<IChangeSet<T>>, ObservableCollection<T>, IEqualityComparer<T>)

Binds the observable changeset to a Cortex.Net observable collection.

Declaration
public static IObservable<IChangeSet<T>> CortexBind<T>(this IObservable<IChangeSet<T>> source, ObservableCollection<T> observableCollection, IEqualityComparer<T> equalityComparer = null)
Parameters
Type Name Description
Cortex.Net.IObservable<IChangeSet<T>> source

The source observable changeset.

ObservableCollection<T> observableCollection

The observable collection.

IEqualityComparer<T> equalityComparer

The equality comparer.

Returns
Type Description
Cortex.Net.IObservable<IChangeSet<T>>

The observable changeset.

Type Parameters
Name Description
T

The type of the collection.

| Improve this Doc View Source

CortexBind<TValue, TKey>(IObservable<IChangeSet<TValue, TKey>>, ObservableDictionary<TKey, TValue>, Int32)

Binds the observable changeset to a Cortex.Net observable dictionary.

Declaration
public static IObservable<IChangeSet<TValue, TKey>> CortexBind<TValue, TKey>(this IObservable<IChangeSet<TValue, TKey>> source, ObservableDictionary<TKey, TValue> observableDictionary, int resetThreshold = 25)
Parameters
Type Name Description
Cortex.Net.IObservable<IChangeSet<TValue, TKey>> source

The source observable changeset.

ObservableDictionary<TKey, TValue> observableDictionary

The observable collection.

System.Int32 resetThreshold

The threshold to use to just refresh the entire collection.

Returns
Type Description
Cortex.Net.IObservable<IChangeSet<TValue, TKey>>

The observable changeset.

Type Parameters
Name Description
TValue

The value type of the dictionary.

TKey

The key type of the dictionary.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX