Show / Hide Table of Contents

Class MvvmCollectionExtensions

Extensions for all ICollection<T> instances that add functionality useful in MVVM scenarios.

Inheritance
object
MvvmCollectionExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Mvvm.dll
Syntax
public static class MvvmCollectionExtensions

Methods

| Edit this page View Source

ToObservable<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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX