Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodDebugInformationHandleCollection.cs
Go to the documentation of this file.
3
5
6public readonly struct MethodDebugInformationHandleCollection : IReadOnlyCollection<MethodDebugInformationHandle>, IEnumerable<MethodDebugInformationHandle>, IEnumerable
7{
8 public struct Enumerator : IEnumerator<MethodDebugInformationHandle>, IEnumerator, IDisposable
9 {
10 private readonly MetadataReader _reader;
11
12 private readonly int _lastRowId;
13
14 private int _currentRowId;
15
17
18 object IEnumerator.Current => Current;
19
20 internal Enumerator(MetadataReader reader, int firstRowId, int lastRowId)
21 {
22 _reader = reader;
25 }
26
27 public bool MoveNext()
28 {
30 {
31 _currentRowId = 16777216;
32 return false;
33 }
35 return true;
36 }
37
39 {
40 throw new NotSupportedException();
41 }
42
44 {
45 }
46 }
47
48 private readonly MetadataReader _reader;
49
50 private readonly int _firstRowId;
51
52 private readonly int _lastRowId;
53
54 public int Count => _lastRowId - _firstRowId + 1;
55
57 {
58 _reader = reader;
59 _firstRowId = 1;
60 _lastRowId = reader.MethodDebugInformationTable.NumberOfRows;
61 }
62
64 {
66 }
67
72
77}
MethodDebugInformationTableReader MethodDebugInformationTable
new IEnumerator< T > GetEnumerator()
static MethodDebugInformationHandle FromRowId(int rowId)