Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Enumerator.cs
Go to the documentation of this file.
4
5namespace System.Diagnostics;
6
8{
10
11 [AllowNull]
12 [MaybeNull]
13 private T _currentItem;
14
15 public T Current => _currentItem;
16
17 object IEnumerator.Current => Current;
18
20 {
21 _nextNode = head;
22 _currentItem = default(T);
23 }
24
25 public bool MoveNext()
26 {
27 if (_nextNode == null)
28 {
29 _currentItem = default(T);
30 return false;
31 }
32 _currentItem = _nextNode.Value;
33 _nextNode = _nextNode.Next;
34 return true;
35 }
36
37 public void Reset()
38 {
39 throw new NotSupportedException();
40 }
41
42 public void Dispose()
43 {
44 }
45}
object IEnumerator. Current
Definition Enumerator.cs:17
Enumerator(DiagNode< T > head)
Definition Enumerator.cs:19