Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InterfaceImplementationHandleCollection.cs
Go to the documentation of this file.
3
5
6public readonly struct InterfaceImplementationHandleCollection : IReadOnlyCollection<InterfaceImplementationHandle>, IEnumerable<InterfaceImplementationHandle>, IEnumerable
7{
8 public struct Enumerator : IEnumerator<InterfaceImplementationHandle>, 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
61
63 {
65 }
66
71
76}
InterfaceImplTableReader InterfaceImplTable
new IEnumerator< T > GetEnumerator()
InterfaceImplementationHandleCollection(MetadataReader reader, TypeDefinitionHandle implementingType)
static InterfaceImplementationHandle FromRowId(int rowId)