|
| | IteratorWrapper (Iterator iterator) |
| | Initializes a new instance.
|
| |
| bool | MoveNext () |
| | Moves to the next instance.
|
| |
| void | Dispose () |
| | Disposes of the instance.
|
| |
| void | Reset () |
| | Not supported.
|
| |
|
| T | Current [get] |
| | Gets the current element.
|
| |
Definition at line 8 of file IteratorWrapper.cs.
◆ IteratorWrapper()
Initializes a new instance.
- Parameters
-
- Exceptions
-
Definition at line 20 of file IteratorWrapper.cs.
21 {
22 _iterator = iterator ?? throw new ArgumentNullException(nameof(iterator));
23 }
◆ Dispose()
◆ MoveNext()
Moves to the next instance.
- Returns
Definition at line 39 of file IteratorWrapper.cs.
40 {
41 if (_iterator.hasNext())
42 {
43 _current = (T)_iterator.next();
44 _position++;
45 return true;
46 }
47
48 return false;
49 }
◆ Reset()
Not supported.
- Exceptions
-
Definition at line 63 of file IteratorWrapper.cs.
64 {
65 throw new NotSupportedException();
66 }
◆ Current
The documentation for this class was generated from the following file: