TrulyObservableOrderedSet.T.
An ordered set that notifies its subscribers whenever one of its INotifyPropertyChanged elements raises its PropertyChanged event.
Inheritance Hierarchy
System.Object
Rhino.Runtime.Notifications.TrulyObservableOrderedSet.T.
Namespace: Rhino.Runtime.Notifications
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public class TrulyObservableOrderedSet<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChangedwhere T : INotifyPropertyChanged, IAssemblyRestrictedObject
Type Parameters
T
A class that implements INotifyPropertyChanged as well as IAssemblyRestrictedObject
The TrulyObservableOrderedSet.T. type exposes the following members.
Constructors
Name
Description
Public Method
TrulyObservableOrderedSet.T..
Creates an empty instance.
Public Method
TrulyObservableOrderedSet.T.(IEnumerable.T.)
Creates an instance with the given items.
Properties
Name
Description
Public Property
Count
Returns the total number of items in the set.
Public Property
IsReadOnly
Always returns false.
Public Property
Item
Gets or replaces an element in the ordered set at the specified index.
Methods
Name
Description
Public Method
Add
Adds an object to the end of the ordered set if the set does not already contain the item.
Public Method
Clear
Clears the ordered set.
Public Method
Contains
Determines whether an element is in the set.
Public Method
CopyTo
Copies the values of the set to an array.
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected Method
Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public Method
GetEnumerator
Returns an enumerator that iterates through the set.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
IndexOf
Searches for the specified object and returns the zero-based index of the first occurrence.
Public Method
Insert
Inserts an element at the specified index.
Protected Method
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public Method
Remove
Removes an element from the set.
Public Method
RemoveAt
Removes an element at the specified index from the set.
Public Method
Sort.TKey.
Sorts the set.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)
Events
Name
Description
Public Event
CollectionChanged
Triggered whenever the set changes or when one of its elements has its PropertyChanged event triggered.
Remarks
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.