Class EventClearingObservableCollection<TValue>
Allows clearing all event handlers
Inheritance
System.Object
System.Collections.ObjectModel.Collection<TValue>
System.Collections.ObjectModel.ObservableCollection<TValue>
Namespace: Umbraco.Cms.Core.Collections
Assembly: Umbraco.Core.dll
Syntax
public class EventClearingObservableCollection<TValue> : ObservableCollection<TValue>, IList<TValue>, ICollection<TValue>, IReadOnlyList<TValue>, IReadOnlyCollection<TValue>, IEnumerable<TValue>, IList, ICollection, IEnumerable, INotifyPropertyChanged, INotifyCollectionChanged, IDeepCloneable
Type Parameters
| Name | Description |
|---|---|
| TValue |
Constructors
View SourceEventClearingObservableCollection()
Declaration
public EventClearingObservableCollection()
EventClearingObservableCollection(IEnumerable<TValue>)
Declaration
public EventClearingObservableCollection(IEnumerable<TValue> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<TValue> | collection |
EventClearingObservableCollection(List<TValue>)
Declaration
public EventClearingObservableCollection(List<TValue> list)
Parameters
| Type | Name | Description |
|---|---|---|
| List<TValue> | list |
Methods
View SourceClearCollectionChangedEvents()
Clears all event handlers for the System.Collections.Specialized.INotifyCollectionChanged.CollectionChanged event.
Declaration
public void ClearCollectionChangedEvents()
DeepClone()
Declaration
public object DeepClone()
Returns
| Type | Description |
|---|---|
| System.Object |