Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodImplementationHandleCollection.cs
Go to the documentation of this file.
3
5
6public readonly struct MethodImplementationHandleCollection : IReadOnlyCollection<MethodImplementationHandle>, IEnumerable<MethodImplementationHandle>, IEnumerable
7{
8 public struct Enumerator : IEnumerator<MethodImplementationHandle>, 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 int _lastRowId;
48
49 public int Count => _lastRowId - _firstRowId + 1;
50
52 {
53 if (containingType.IsNil)
54 {
55 _firstRowId = 1;
56 _lastRowId = reader.MethodImplTable.NumberOfRows;
57 }
58 else
59 {
60 reader.MethodImplTable.GetMethodImplRange(containingType, out _firstRowId, out _lastRowId);
61 }
62 }
63
65 {
67 }
68
73
78}
new IEnumerator< T > GetEnumerator()
MethodImplementationHandleCollection(MetadataReader reader, TypeDefinitionHandle containingType)
static MethodImplementationHandle FromRowId(int rowId)