Class MvvmCollectionExtensions
Extensions for all ICollection<T> instances that add functionality useful in MVVM scenarios.
Inherited Members
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Mvvm.dll
Syntax
public static class MvvmCollectionExtensions
Methods
| Edit this page View SourceToObservable<T>(ICollection<T>)
Gets an ObservableCollectionWrap<T> that wraps the specified collection.
Declaration
public static ObservableCollectionWrap<T> ToObservable<T>(this ICollection<T> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection<T> | collection | Collection to wrap inside an ObservableCollectionWrap<T>. |
Returns
| Type | Description |
|---|---|
| ObservableCollectionWrap<T> | An ObservableCollectionWrap<T> that wraps the collection to provide change notifications via INotifyCollectionChanged. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of elements in the collection. |