Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AceEnumerator.cs
Go to the documentation of this file.
2
4
5public sealed class AceEnumerator : IEnumerator
6{
7 private int _current;
8
9 private readonly GenericAcl _acl;
10
11 object IEnumerator.Current
12 {
13 get
14 {
15 if (_current == -1 || _current >= _acl.Count)
16 {
18 }
19 return _acl[_current];
20 }
21 }
22
24
26 {
27 if (collection == null)
28 {
29 throw new ArgumentNullException("collection");
30 }
32 Reset();
33 }
34
35 public bool MoveNext()
36 {
37 _current++;
38 return _current < _acl.Count;
39 }
40
41 public void Reset()
42 {
43 _current = -1;
44 }
45}
static string Arg_InvalidOperationException
Definition SR.cs:216
Definition SR.cs:7