Click or drag to resize
DigitalRuneStateCollection Class
Manages a collection of States.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionState
    System.Collections.ObjectModelKeyedCollectionString, State
      DigitalRune.CollectionsNamedObjectCollectionState
        DigitalRune.Game.StatesStateCollection

Namespace: DigitalRune.Game.States
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public class StateCollection : NamedObjectCollection<State>

The StateCollection type exposes the following members.

Constructors
  NameDescription
Public methodStateCollection
Initializes a new instance of the StateCollection class.
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionState.)
Public methodAddRange (Inherited from NamedObjectCollectionT.)
Protected methodChangeItemKey
Changes the key associated with the specified element in the lookup dictionary.
(Inherited from KeyedCollectionString, State.)
Public methodClear (Inherited from CollectionState.)
Protected methodClearItems (Overrides NamedObjectCollectionTClearItems.)
Public methodContains(TKey)
Determines whether the collection contains an element with the specified key.
(Inherited from KeyedCollectionString, State.)
Public methodContains(T) (Inherited from CollectionState.)
Public methodCopyTo (Inherited from CollectionState.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the StateCollection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Protected methodGetKeyForItem
When implemented in a derived class, extracts the key from the specified element.
(Inherited from NamedObjectCollectionT.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from CollectionState.)
Public methodInsert (Inherited from CollectionState.)
Protected methodInsertItem (Overrides NamedObjectCollectionTInsertItem(Int32, T).)
Public methodInsertRange (Inherited from NamedObjectCollectionT.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMove
Moves the item at the specified index to a new location in the collection.
(Inherited from NamedObjectCollectionT.)
Protected methodMoveItem
Moves the item at the specified index to a new location in the collection.
(Inherited from NamedObjectCollectionT.)
Protected methodOnCollectionChanged
Raises the CollectionChanged event.
(Inherited from NamedObjectCollectionT.)
Public methodRemove(TKey) (Inherited from KeyedCollectionString, State.)
Public methodRemove(T) (Inherited from CollectionState.)
Public methodRemoveAt (Inherited from CollectionState.)
Protected methodRemoveItem (Overrides NamedObjectCollectionTRemoveItem(Int32).)
Public methodRemoveRange (Inherited from NamedObjectCollectionT.)
Protected methodSetItem
Replaces the element at the specified index.
(Overrides NamedObjectCollectionTSetItem(Int32, T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGet(String, T)
Gets the object associated with the specified key.
(Inherited from NamedObjectCollectionT.)
Top
Properties
  NameDescription
Public propertyActiveState
Gets the active state.
Public propertyComparer
Gets the generic equality comparer that is used to determine equality of keys in the collection.
(Inherited from KeyedCollectionString, State.)
Public propertyCount (Inherited from CollectionState.)
Protected propertyDictionary (Inherited from KeyedCollectionString, State.)
Public propertyFinalState
Gets or sets the final state.
Public propertyInitialState
Gets or sets the initial state.
Public propertyItemTKey
Gets the element with the specified key.
(Inherited from KeyedCollectionString, State.)
Public propertyItemInt32
Gets or sets the element at the specified index.
(Inherited from CollectionState.)
Protected propertyItems (Inherited from CollectionState.)
Public propertyOwner
Gets the state that owns this state collection.
Public propertySaveHistory
Gets or sets a value indicating whether this state collection has a "history state".
Top
Events
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
(Inherited from CollectionState.)
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
(Inherited from CollectionState.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from CollectionState.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionState.)
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
(Inherited from CollectionState.)
Explicit interface implementationPrivate methodIListInsert
Inserts an item into the IList at the specified index.
(Inherited from CollectionState.)
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from CollectionState.)
Explicit interface implementationPrivate propertyICollectionTIsReadOnly (Inherited from CollectionState.)
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from CollectionState.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from CollectionState.)
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
(Inherited from CollectionState.)
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
(Inherited from CollectionState.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from CollectionState.)
Top
Remarks
items or duplicate items are not allowed in this collection. The collection has a few special state references: InitialState, FinalState, and ActiveState. These references must refer to states contained in the collection. If a referenced state is removed from the collection the reference is set to .
See Also