Class ObservableReadOnlyOrderedSet<T>
- Namespace
- NMF.Collections.ObjectModel
- Assembly
- NMF.Collections.dll
Denotes an observable readonly ordered set view
public class ObservableReadOnlyOrderedSet<T> : ReadOnlyOrderedSet<T>, IList, ICollection, IOrderedSet<T>, IList<T>, ISet<T>, ICollection<T>, INotifyCollectionChanged, INotifyCollectionChanging, IEnumerableExpression<T>, IEnumerable<T>, IEnumerableExpression, IEnumerable
Type Parameters
T
the element type
- Inheritance
-
ObservableReadOnlyOrderedSet<T>
- Implements
-
IOrderedSet<T>IList<T>ISet<T>ICollection<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
ObservableReadOnlyOrderedSet(ObservableOrderedSet<T>)
Creates a new instance
public ObservableReadOnlyOrderedSet(ObservableOrderedSet<T> parent)
Parameters
parent
ObservableOrderedSet<T>the collection for which the view should be created
Methods
AsNotifiable()
Gets notifications for this collection
public INotifyEnumerable<T> AsNotifiable()
Returns
- INotifyEnumerable<T>
A collection that will notify clients as new elements change
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Gets called when the collection was changed
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgsthe event args
OnCollectionChanging(NotifyCollectionChangedEventArgs)
Gets called when an attempt is made to change the collection
protected virtual void OnCollectionChanging(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgsthe event args
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
CollectionChanged
Occurs when the collection changes.
public event NotifyCollectionChangedEventHandler CollectionChanged
Event Type
CollectionChanging
Gets raised when an attempt is made to change a given collection
public event EventHandler<NotifyCollectionChangedEventArgs> CollectionChanging