Stores objects by their names.
Namespace: DigitalRune.CollectionsAssembly: DigitalRune (in DigitalRune.dll) Version: 1.10.0.0 (1.10.0.9503)
Syntax
| C# |
|---|
[ObfuscationAttribute(Feature = "controlflow")] public class NamedObjectCollection<T> : KeyedCollection<string, T> where T : INamedObject |
| Visual Basic |
|---|
<ObfuscationAttribute(Feature := "controlflow")> _ Public Class NamedObjectCollection(Of T As INamedObject) _ Inherits KeyedCollection(Of String, T) |
| Visual C++ |
|---|
[ObfuscationAttribute(Feature = L"controlflow")] generic<typename T> where T : INamedObject public ref class NamedObjectCollection : public KeyedCollection<String^, T> |
Type Parameters
- T
- The type of the objects. Must be derived from INamedObject.
Remarks
This collection stores INamedObjects. The name of each object is used as key when inserting a new object. The collection ensures that each object is properly named.
The NamedObjectCollection<(Of <(<'T>)>)> assumes that the names of the objects are constant. The collection might not work as expected if the object's names are changed while they are part of the collection.
Inheritance Hierarchy
System..::..Object
System.Collections.ObjectModel..::..Collection<(Of <(<'T>)>)>
System.Collections.ObjectModel..::..KeyedCollection<(Of <(<'String, T>)>)>
DigitalRune.Collections..::..NamedObjectCollection<(Of <(<'T>)>)>
DigitalRune.Diagnostics..::..ProfilerDataCollection
DigitalRune.Game..::..GameObjectCollection
DigitalRune.Game.Input..::..InputCommandCollection
DigitalRune.Game.States..::..StateCollection
DigitalRune.Game.UI..::..UIScreenCollection
System.Collections.ObjectModel..::..Collection<(Of <(<'T>)>)>
System.Collections.ObjectModel..::..KeyedCollection<(Of <(<'String, T>)>)>
DigitalRune.Collections..::..NamedObjectCollection<(Of <(<'T>)>)>
DigitalRune.Diagnostics..::..ProfilerDataCollection
DigitalRune.Game..::..GameObjectCollection
DigitalRune.Game.Input..::..InputCommandCollection
DigitalRune.Game.States..::..StateCollection
DigitalRune.Game.UI..::..UIScreenCollection