Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GenericParameterHandleCollection.cs
Go to the documentation of this file.
3
5
6public readonly struct GenericParameterHandleCollection : IReadOnlyList<GenericParameterHandle>, IEnumerable<GenericParameterHandle>, IEnumerable, IReadOnlyCollection<GenericParameterHandle>
7{
8 public struct Enumerator : IEnumerator<GenericParameterHandle>, IEnumerator, IDisposable
9 {
10 private readonly int _lastRowId;
11
12 private int _currentRowId;
13
15
16 object IEnumerator.Current => Current;
17
18 internal Enumerator(int firstRowId, int lastRowId)
19 {
22 }
23
24 public bool MoveNext()
25 {
27 {
28 _currentRowId = 16777216;
29 return false;
30 }
32 return true;
33 }
34
36 {
37 throw new NotSupportedException();
38 }
39
41 {
42 }
43 }
44
45 private readonly int _firstRowId;
46
47 private readonly ushort _count;
48
49 public int Count => _count;
50
52 {
53 get
54 {
56 {
58 }
60 }
61 }
62
68
70 {
71 return new Enumerator(_firstRowId, _firstRowId + _count - 1);
72 }
73
78
83}
static void IndexOutOfRange()
Definition Throw.cs:166
new IEnumerator< T > GetEnumerator()
static GenericParameterHandle FromRowId(int rowId)