Class ManualObservableCollection<T>
Implements a manually notified observable wrapper for any object that implements IEnumerable<T>.
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.Mvvm.dll
Syntax
public class ManualObservableCollection<T> : IEnumerable<T>, IEnumerable, INotifyCollectionChanged
Type Parameters
| Name | Description |
|---|---|
| T | Type of items in the collection. |
Constructors
| Edit this page View SourceManualObservableCollection(IEnumerable<T>)
Implements a manually notified observable wrapper for any object that implements IEnumerable<T>.
Declaration
public ManualObservableCollection(IEnumerable<T> source)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | source | Collection to expose through this instance. |
Methods
| Edit this page View SourceGetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<T> | An enumerator that can be used to iterate through the collection. |
NotifyChange()
Notifies registered listeners that the collection has changed.
Declaration
public void NotifyChange()
NotifyChange(NotifyCollectionChangedEventArgs)
Notifies registered listeners that the collection has changed.
Declaration
public void NotifyChange(NotifyCollectionChangedEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| NotifyCollectionChangedEventArgs | args | Collection change arguments to pass to subscribers of CollectionChanged. |
Events
| Edit this page View SourceCollectionChanged
Occurs when the collection changes.
Declaration
public event NotifyCollectionChangedEventHandler? CollectionChanged
Event Type
| Type | Description |
|---|---|
| NotifyCollectionChangedEventHandler |