Provides functionality for indexing into a sequence of INamed items.
More...
Inherits IEnumerable< T >.
|
readonly ICollection< String > | Names |
| The names of all the items in this IndexedSet.
|
|
readonly IEnumerable< TOfInt > | Ints |
| An enumerable of TOfInt data.
|
|
readonly IEnumerable< TOfLong > | Longs |
| An enumerable of TOfLong data.
|
|
readonly IEnumerable< TOfInt128 > | Int128s |
| An enumerable of TOfInt128 data.
|
|
readonly IEnumerable< TOfDouble > | Doubles |
| An enumerable of TOfDouble data.
|
|
readonly IEnumerable< TOfString > | Strings |
| An enumerable of TOfString data.
|
|
Provides functionality for indexing into a sequence of INamed items.
- Type Constraints
-
T | : | INamed | |
TOfInt | : | T | |
TOfLong | : | T | |
TOfInt128 | : | T | |
TOfDouble | : | T | |
TOfString | : | T | |
Get a TOfDouble by name.
- Parameters
-
name | Name of the item to get. |
- Returns
- The item with the given name.
- Exceptions
-
KeyNotFoundException | If no item has the given name. |
InvalidCastException | When the item exists but is not TOfDouble. |
Get a TOfInt128 by name.
- Parameters
-
name | Name of the item to get. |
- Returns
- The item with the given name.
- Exceptions
-
KeyNotFoundException | If no item has the given name. |
InvalidCastException | When the item exists but is not TOfInt128. |
Get a TOfInt by name.
- Parameters
-
name | Name of the item to get. |
- Returns
- The item with the given name.
- Exceptions
-
KeyNotFoundException | If no item has the given name. |
InvalidCastException | When the item exists but is not TOfInt. |
Get a TOfLong by name.
- Parameters
-
name | Name of the item to get. |
- Returns
- The item with the given name.
- Exceptions
-
KeyNotFoundException | If no item has the given name. |
InvalidCastException | When the item exists but is not TOfLong. |
Get a TOfString by name.
- Parameters
-
name | Name of the item to get. |
- Returns
- The item with the given name.
- Exceptions
-
KeyNotFoundException | If no item has the given name. |
InvalidCastException | When the item exists but is not TOfStrings. |
Index by position.
- Parameters
-
- Returns
- The item at the i'th position.
- Exceptions
-
ArgumentOutOfRangeException | Unless 0 <= i < this.IndexedData.Length. |
Index by name.
- Parameters
-
name | Name of the item to get. |
- Returns
- The item at the named position.
- Exceptions
-
KeyNotFoundException | When the name is an available key. |