Skip to content

TrulyObservableOrderedSet.T.

Public Class

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, INotifyCollectionChanged
where 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

Creates an empty instance.


Public Method

Creates an instance with the given items.


Properties

Name

Description


Public Property

Returns the total number of items in the set.


Public Property

Always returns false.


Public Property

Gets or replaces an element in the ordered set at the specified index.


Methods

Name

Description


Public Method

Adds an object to the end of the ordered set if the set does not already contain the item.


Public Method

Clears the ordered set.


Public Method

Determines whether an element is in the set.


Public Method

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

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

Searches for the specified object and returns the zero-based index of the first occurrence.


Public Method

Inserts an element at the specified index.


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

Removes an element from the set.


Public Method

Removes an element at the specified index from the set.


Public Method

Sorts the set.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Events

Name

Description


Public Event

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

method will be invoked, and if false, an InvalidOperationException will be thrown.