Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MethodDebugInformationHandleCollection.cs
Go to the documentation of this file.
1
using
System.Collections
;
2
using
System.Collections.Generic
;
3
4
namespace
System.Reflection.Metadata
;
5
6
public
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
16
public
MethodDebugInformationHandle
Current
=>
MethodDebugInformationHandle
.
FromRowId
((
int
)((
long
)
_currentRowId
& 0
xFFFFFFL
));
17
18
object
IEnumerator.Current =>
Current
;
19
20
internal
Enumerator
(
MetadataReader
reader,
int
firstRowId
,
int
lastRowId
)
21
{
22
_reader
= reader;
23
_lastRowId
=
lastRowId
;
24
_currentRowId
=
firstRowId
- 1;
25
}
26
27
public
bool
MoveNext
()
28
{
29
if
(
_currentRowId
>=
_lastRowId
)
30
{
31
_currentRowId
= 16777216;
32
return
false
;
33
}
34
_currentRowId
++;
35
return
true
;
36
}
37
38
void
IEnumerator
.
Reset
()
39
{
40
throw
new
NotSupportedException
();
41
}
42
43
void
IDisposable
.
Dispose
()
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
56
internal
MethodDebugInformationHandleCollection
(
MetadataReader
reader)
57
{
58
_reader
= reader;
59
_firstRowId
= 1;
60
_lastRowId
= reader.
MethodDebugInformationTable
.NumberOfRows;
61
}
62
63
public
Enumerator
GetEnumerator
()
64
{
65
return
new
Enumerator
(
_reader
,
_firstRowId
,
_lastRowId
);
66
}
67
68
IEnumerator<MethodDebugInformationHandle>
IEnumerable<MethodDebugInformationHandle>
.
GetEnumerator
()
69
{
70
return
GetEnumerator
();
71
}
72
73
IEnumerator
IEnumerable
.
GetEnumerator
()
74
{
75
return
GetEnumerator
();
76
}
77
}
System.Collections.Generic.Dictionary.GetEnumerator
Enumerator GetEnumerator()
Definition
Dictionary.cs:984
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.NotSupportedException
Definition
NotSupportedException.cs:9
System.Reflection.Metadata.MetadataReader.MethodDebugInformationTable
MethodDebugInformationTableReader MethodDebugInformationTable
Definition
MetadataReader.cs:167
System.Reflection.Metadata.MetadataReader
Definition
MetadataReader.cs:12
System.Collections.Generic.IEnumerable.GetEnumerator
new IEnumerator< T > GetEnumerator()
System.Collections.Generic.IEnumerable
Definition
IEnumerable.cs:4
System.Collections.Generic.IEnumerator
Definition
IEnumerator.cs:4
System.Collections.Generic.IReadOnlyCollection
Definition
IReadOnlyCollection.cs:4
System.Collections.IEnumerator.Reset
void Reset()
System.IDisposable.Dispose
void Dispose()
System.IDisposable
Definition
IDisposable.cs:4
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Collections
Definition
BlockingCollection.cs:8
System.Reflection.Metadata
Definition
AssemblyExtensions.cs:4
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator._currentRowId
int _currentRowId
Definition
MethodDebugInformationHandleCollection.cs:14
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator._reader
readonly MetadataReader _reader
Definition
MethodDebugInformationHandleCollection.cs:10
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator.MoveNext
bool MoveNext()
Definition
MethodDebugInformationHandleCollection.cs:27
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator.Current
object IEnumerator. Current
Definition
MethodDebugInformationHandleCollection.cs:18
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator.Enumerator
Enumerator(MetadataReader reader, int firstRowId, int lastRowId)
Definition
MethodDebugInformationHandleCollection.cs:20
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator.Current
MethodDebugInformationHandle Current
Definition
MethodDebugInformationHandleCollection.cs:16
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator._lastRowId
readonly int _lastRowId
Definition
MethodDebugInformationHandleCollection.cs:12
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Enumerator
Definition
MethodDebugInformationHandleCollection.cs:9
System.Reflection.Metadata.MethodDebugInformationHandleCollection._firstRowId
readonly int _firstRowId
Definition
MethodDebugInformationHandleCollection.cs:50
System.Reflection.Metadata.MethodDebugInformationHandleCollection._lastRowId
readonly int _lastRowId
Definition
MethodDebugInformationHandleCollection.cs:52
System.Reflection.Metadata.MethodDebugInformationHandleCollection._reader
readonly MetadataReader _reader
Definition
MethodDebugInformationHandleCollection.cs:48
System.Reflection.Metadata.MethodDebugInformationHandleCollection.MethodDebugInformationHandleCollection
MethodDebugInformationHandleCollection(MetadataReader reader)
Definition
MethodDebugInformationHandleCollection.cs:56
System.Reflection.Metadata.MethodDebugInformationHandleCollection.GetEnumerator
Enumerator GetEnumerator()
Definition
MethodDebugInformationHandleCollection.cs:63
System.Reflection.Metadata.MethodDebugInformationHandleCollection.Count
int Count
Definition
MethodDebugInformationHandleCollection.cs:54
System.Reflection.Metadata.MethodDebugInformationHandleCollection
Definition
MethodDebugInformationHandleCollection.cs:7
System.Reflection.Metadata.MethodDebugInformationHandle.FromRowId
static MethodDebugInformationHandle FromRowId(int rowId)
Definition
MethodDebugInformationHandle.cs:16
System.Reflection.Metadata.MethodDebugInformationHandle
Definition
MethodDebugInformationHandle.cs:4
source
System.Reflection.Metadata
System.Reflection.Metadata
MethodDebugInformationHandleCollection.cs
Generated by
1.10.0