Represents a container that offers up two kinds of iterators for the hardcoded contents. More...
Public Member Functions | |
IIterator< ItemPair > | GetItems () |
Retrieve an iterator over the data that returns an ItemPair object containing both key and value for each entry. | |
IIterator< string > | GetKeys () |
Retrieve an iterator over the "key" part of the data, where the data returned from the iterator is a string type. | |
IIterator< string > | GetValues () |
Retrieve an iterator over the "value" part of the data, where the data returned from the iterator is a string type. | |
Private Attributes | |
string[] | _keys = new string[] { "One", "Two", "Three" } |
string[] | _values = new string[] { "Value 1", "Value 2", "Value 3" } |
Represents a container that offers up two kinds of iterators for the hardcoded contents.
Definition at line 142 of file IteratorContainer_Class.cs.
Retrieve an iterator over the data that returns an ItemPair object containing both key and value for each entry.
Definition at line 157 of file IteratorContainer_Class.cs.
References IteratorContainer_Class._keys, and IteratorContainer_Class._values.
Referenced by Iterator_Exercise.Run().
|
inline |
Retrieve an iterator over the "key" part of the data, where the data returned from the iterator is a string type.
Definition at line 177 of file IteratorContainer_Class.cs.
References IteratorContainer_Class._keys.
Referenced by Iterator_Exercise.Run().
|
inline |
Retrieve an iterator over the "value" part of the data, where the data returned from the iterator is a string type.
Definition at line 187 of file IteratorContainer_Class.cs.
References IteratorContainer_Class._values.
Referenced by Iterator_Exercise.Run().
|
private |
Definition at line 149 of file IteratorContainer_Class.cs.
Referenced by IteratorContainer_Class.GetItems(), and IteratorContainer_Class.GetKeys().
|
private |
Definition at line 150 of file IteratorContainer_Class.cs.
Referenced by IteratorContainer_Class.GetItems(), and IteratorContainer_Class.GetValues().