Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ExceptionRegion.cs
Go to the documentation of this file.
1
namespace
System.Reflection.Metadata
;
2
3
public
readonly
struct
ExceptionRegion
4
{
5
private
readonly
ExceptionRegionKind
_kind
;
6
7
private
readonly
int
_tryOffset
;
8
9
private
readonly
int
_tryLength
;
10
11
private
readonly
int
_handlerOffset
;
12
13
private
readonly
int
_handlerLength
;
14
15
private
readonly
int
_classTokenOrFilterOffset
;
16
17
public
ExceptionRegionKind
Kind
=>
_kind
;
18
19
public
int
TryOffset
=>
_tryOffset
;
20
21
public
int
TryLength
=>
_tryLength
;
22
23
public
int
HandlerOffset
=>
_handlerOffset
;
24
25
public
int
HandlerLength
=>
_handlerLength
;
26
27
public
int
FilterOffset
28
{
29
get
30
{
31
if
(
Kind
!=
ExceptionRegionKind
.Filter)
32
{
33
return
-1;
34
}
35
return
_classTokenOrFilterOffset
;
36
}
37
}
38
39
public
EntityHandle
CatchType
40
{
41
get
42
{
43
if
(
Kind
!= 0)
44
{
45
return
default
(
EntityHandle
);
46
}
47
return
new
EntityHandle
((uint)
_classTokenOrFilterOffset
);
48
}
49
}
50
51
internal
ExceptionRegion
(
ExceptionRegionKind
kind,
int
tryOffset,
int
tryLength,
int
handlerOffset,
int
handlerLength,
int
classTokenOrFilterOffset)
52
{
53
_kind
= kind;
54
_tryOffset
= tryOffset;
55
_tryLength
= tryLength;
56
_handlerOffset
= handlerOffset;
57
_handlerLength
= handlerLength;
58
_classTokenOrFilterOffset
= classTokenOrFilterOffset;
59
}
60
}
System.Reflection.Metadata.ExceptionRegionKind
ExceptionRegionKind
Definition
ExceptionRegionKind.cs:4
System.Reflection.Metadata
Definition
AssemblyExtensions.cs:4
System.Reflection.Metadata.EntityHandle
Definition
EntityHandle.cs:6
System.Reflection.Metadata.ExceptionRegion._handlerOffset
readonly int _handlerOffset
Definition
ExceptionRegion.cs:11
System.Reflection.Metadata.ExceptionRegion._kind
readonly ExceptionRegionKind _kind
Definition
ExceptionRegion.cs:5
System.Reflection.Metadata.ExceptionRegion._classTokenOrFilterOffset
readonly int _classTokenOrFilterOffset
Definition
ExceptionRegion.cs:15
System.Reflection.Metadata.ExceptionRegion._handlerLength
readonly int _handlerLength
Definition
ExceptionRegion.cs:13
System.Reflection.Metadata.ExceptionRegion.CatchType
EntityHandle CatchType
Definition
ExceptionRegion.cs:40
System.Reflection.Metadata.ExceptionRegion.TryLength
int TryLength
Definition
ExceptionRegion.cs:21
System.Reflection.Metadata.ExceptionRegion.Kind
ExceptionRegionKind Kind
Definition
ExceptionRegion.cs:17
System.Reflection.Metadata.ExceptionRegion.HandlerOffset
int HandlerOffset
Definition
ExceptionRegion.cs:23
System.Reflection.Metadata.ExceptionRegion._tryOffset
readonly int _tryOffset
Definition
ExceptionRegion.cs:7
System.Reflection.Metadata.ExceptionRegion.TryOffset
int TryOffset
Definition
ExceptionRegion.cs:19
System.Reflection.Metadata.ExceptionRegion.HandlerLength
int HandlerLength
Definition
ExceptionRegion.cs:25
System.Reflection.Metadata.ExceptionRegion.FilterOffset
int FilterOffset
Definition
ExceptionRegion.cs:28
System.Reflection.Metadata.ExceptionRegion._tryLength
readonly int _tryLength
Definition
ExceptionRegion.cs:9
System.Reflection.Metadata.ExceptionRegion.ExceptionRegion
ExceptionRegion(ExceptionRegionKind kind, int tryOffset, int tryLength, int handlerOffset, int handlerLength, int classTokenOrFilterOffset)
Definition
ExceptionRegion.cs:51
System.Reflection.Metadata.ExceptionRegion
Definition
ExceptionRegion.cs:4
source
System.Reflection.Metadata
System.Reflection.Metadata
ExceptionRegion.cs
Generated by
1.10.0