RhinoCommon API
TrulyObservableOrderedSetT Class |
An ordered set that notifies its subscribers whenever one of its INotifyPropertyChanged elements raises its PropertyChanged event.

Namespace: Rhino.Runtime.Notifications
Assembly: RhinoCommon (in RhinoCommon.dll)

public class TrulyObservableOrderedSet<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged where T : INotifyPropertyChanged, IAssemblyRestrictedObject
Public Class TrulyObservableOrderedSet(Of T As {INotifyPropertyChanged, IAssemblyRestrictedObject}) Implements IList(Of T), ICollection(Of T), IEnumerable(Of T), IEnumerable, INotifyCollectionChanged
Type Parameters
- T
- A class that implements INotifyPropertyChanged as well as IAssemblyRestrictedObject
The TrulyObservableOrderedSetT type exposes the following members.

Name | Description | |
---|---|---|
![]() | TrulyObservableOrderedSetT |
Creates an empty instance.
|
![]() | TrulyObservableOrderedSetT(IEnumerableT) |
Creates an instance with the given items.
|

Name | Description | |
---|---|---|
![]() | Count |
Returns the total number of items in the set.
|
![]() | IsReadOnly |
Always returns false.
|
![]() | Item |
Gets or replaces an element in the ordered set at the specified index.
|

Name | Description | |
---|---|---|
![]() | Add |
Adds an object to the end of the ordered set if the set does not already contain the item.
|
![]() | Clear |
Clears the ordered set.
|
![]() | Contains |
Determines whether an element is in the set.
|
![]() | CopyTo |
Copies the values of the set to an array.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the set.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf |
Searches for the specified object and returns the zero-based index of the first occurrence.
|
![]() | Insert |
Inserts an element at the specified index.
|
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove |
Removes an element from the set.
|
![]() | RemoveAt |
Removes an element at the specified index from the set.
|
![]() | SortTKey |
Sorts the set.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |

Name | Description | |
---|---|---|
![]() | CollectionChanged |
Triggered whenever the set changes or when one of its elements has its PropertyChanged event triggered.
|

This class prevents the removal of elements by assemblies they cannot be edited by. At the time of removal,
each element's Editable method will be invoked, and if false, an
InvalidOperationException will be thrown.
