Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IListEnumerator.cs
Go to the documentation of this file.
3
4namespace System.Xml.Xsl;
5
7{
8 private readonly IList<T> _sequence;
9
10 private int _index;
11
12 private T _current;
13
14 public T Current => _current;
15
17 {
18 get
19 {
20 if (_index == 0)
21 {
23 }
24 if (_index > _sequence.Count)
25 {
27 }
28 return _current;
29 }
30 }
31
33 {
35 _index = 0;
36 _current = default(T);
37 }
38
39 public void Dispose()
40 {
41 }
42
43 public bool MoveNext()
44 {
45 if (_index < _sequence.Count)
46 {
48 _index++;
49 return true;
50 }
51 _current = default(T);
52 return false;
53 }
54
56 {
57 _index = 0;
58 _current = default(T);
59 }
60}
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Sch_EnumNotStarted
Definition SR.cs:1204
static string Sch_EnumFinished
Definition SR.cs:1206
Definition SR.cs:7
IListEnumerator(IList< T > sequence)
readonly IList< T > _sequence