Class DeferrableObservableCollection<T>
Represents a dynamic data collection that provides notifications when items get added or removed, or when the whole list is refreshed.
Namespace: Sartorius.SAF.Collections
Assembly: Sartorius.SAF.dll
Syntax
public class DeferrableObservableCollection<T> : ObservableCollection<T>, IList<T>, ICollection<T>, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Type Parameters
| Name | Description |
|---|---|
| T | The type of elements in the collection. |
Methods
View SourceDeferUpdates()
Suppress updates until the returned object is disposed.
Declaration
public IDisposable DeferUpdates()
Returns
| Type | Description |
|---|---|
| IDisposable | An IDisposable that will reenable updates on the collection when disposed. |
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the CollectionChanged event with the provided arguments.
Declaration
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| NotifyCollectionChangedEventArgs | e | Arguments of the event being raised. |