Class IterableIntKeyedCollection<TValueType>
Class which is a collection which can be keyed by an int, and is iterable
Implements
IIterableIntKeyedCollection<TValueType>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Int32, TValueType>>
System.Collections.IEnumerable
Namespace: Scripting
Syntax
public class IterableIntKeyedCollection<TValueType> : IIterableIntKeyedCollection<TValueType>, IEnumerable<KeyValuePair<int, TValueType>>, IEnumerable
Type Parameters
Name | Description |
---|---|
TValueType | The type of the value type. |
Properties
Item[Int32]
Gets the value with the specified key.
Declaration
public TValueType this[int key] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | key |
Property Value
Type | Description |
---|---|
TValueType | The result |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<KeyValuePair<int, TValueType>> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.Int32, TValueType>> | A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | An System.Collections.IEnumerator object that can be used to iterate through the collection. |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable