Class ObservableCollectionExtensions
Provides extension methods for ObservableCollection<T>s
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class ObservableCollectionExtensions
Methods
View SourceSyncFrom<T>(ObservableCollection<T>, IEnumerable<T>)
Synchronizes the specified IEnumerable<T> with the ObservableCollection<T>.
Declaration
public static void SyncFrom<T>(this ObservableCollection<T> collection, IEnumerable<T> source)
Parameters
| Type | Name | Description |
|---|---|---|
| ObservableCollection<T> | collection | The ObservableCollection<T> that should be synced with the source IEnumerable<T>. |
| IEnumerable<T> | source | The IEnumerable<T> that should be synced into the collection. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements in the collection. |