Click or drag to resize
DigitalRuneGamePropertyCollection Structure
Manages a collection of game object properties.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public struct GamePropertyCollection : IEnumerable<IGameProperty>, 
	IEnumerable, IEquatable<GamePropertyCollection>

The GamePropertyCollection type exposes the following members.

Methods
  NameDescription
Public methodAddT(Int32)
Adds a property with the given ID.
Public methodAddT(String)
Adds a property with with the given name.
Public methodAddT(GamePropertyMetadataT)
Adds a property for the given metadata.
Public methodEquals(Object)
Determines whether the specified Object is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(GamePropertyCollection)
Indicates whether the current object is equal to another object of the same type.
Public methodGetT(Int32)
Gets the property with the given ID.
Public methodGetT(String)
Gets the property with the given name.
Public methodGetT(GamePropertyMetadataT)
Gets the property for the given metadata.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove(Int32)
Removes the property with the given ID.
Public methodRemove(IGamePropertyMetadata)
Removes the property for the given metadata.
Public methodRemoveT(String)
Removes the property with the given name.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Compares two GamePropertyCollections to determine whether they are the same.
Public operatorStatic memberInequality
Compares two GamePropertyCollections to determine whether they are different.
Top
Extension Methods
  NameDescription
Public Extension MethodDoIGameProperty(ActionIGameProperty)Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodDoIGameProperty(ActionIGameProperty, Int32)Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is enumerated.
(Defined by LinqHelper.)
Public Extension MethodForEachIGameProperty(ActionIGameProperty)Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.)
Public Extension MethodForEachIGameProperty(ActionIGameProperty, Int32)Overloaded.
Immediately performs the given action on each element (incorporating its index) in a sequence.
(Defined by LinqHelper.)
Public Extension MethodIndexOfIGameProperty
Returns the index of the first element in a sequence that satisfies the specified condition.
(Defined by LinqHelper.)
Top
Properties
  NameDescription
Public propertyOwner
Gets the game object that owns this collection.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through the collection.
Top
Remarks
This collection implements IEnumerableT, but enumerating the collection allocates heap memory (garbage!) and should only be used in game editors and not in performance critical paths of a game.
See Also