Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodDefinitionHandleCollection.cs
Go to the documentation of this file.
3
5
6public readonly struct MethodDefinitionHandleCollection : IReadOnlyCollection<MethodDefinitionHandle>, IEnumerable<MethodDefinitionHandle>, IEnumerable
7{
8 public struct Enumerator : IEnumerator<MethodDefinitionHandle>, IEnumerator, IDisposable
9 {
10 private readonly MetadataReader _reader;
11
12 private readonly int _lastRowId;
13
14 private int _currentRowId;
15
17 {
18 get
19 {
21 {
23 }
25 }
26 }
27
28 object IEnumerator.Current => Current;
29
30 internal Enumerator(MetadataReader reader, int firstRowId, int lastRowId)
31 {
32 _reader = reader;
35 }
36
41
42 public bool MoveNext()
43 {
45 {
46 _currentRowId = 16777216;
47 return false;
48 }
50 return true;
51 }
52
54 {
55 throw new NotSupportedException();
56 }
57
59 {
60 }
61 }
62
63 private readonly MetadataReader _reader;
64
65 private readonly int _firstRowId;
66
67 private readonly int _lastRowId;
68
69 public int Count => _lastRowId - _firstRowId + 1;
70
72 {
73 _reader = reader;
74 _firstRowId = 1;
75 _lastRowId = reader.MethodDefTable.NumberOfRows;
76 }
77
83
85 {
87 }
88
93
98}
void GetMethodRange(TypeDefinitionHandle typeDef, out int firstMethodRowId, out int lastMethodRowId)
new IEnumerator< T > GetEnumerator()
MethodDefinitionHandleCollection(MetadataReader reader, TypeDefinitionHandle containingType)
static MethodDefinitionHandle FromRowId(int rowId)