Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
Name
string
? System.Reflection.Emit.OpCode.Name
get
Definition at line
28
of file
OpCode.cs
.
29
{
30
get
31
{
32
if
(
Size
== 0)
33
{
34
return
null
;
35
}
36
string
[]
array
=
g_nameCache
;
37
if
(
array
==
null
)
38
{
39
array
= (
g_nameCache
=
new
string
[287]);
40
}
41
OpCodeValues
opCodeValues = (
OpCodeValues
)(ushort)
Value
;
42
int
num = (int)opCodeValues;
43
if
(num > 255)
44
{
45
if
(num < 65024 || num > 65054)
46
{
47
return
null
;
48
}
49
num = 256 + (num - 65024);
50
}
51
string
text
=
Volatile
.
Read
(ref
array
[num]);
52
if
(
text
!=
null
)
53
{
54
return
text
;
55
}
56
text
=
Enum
.GetName(typeof(
OpCodeValues
), opCodeValues).ToLowerInvariant().Replace(
'_'
,
'.'
);
57
Volatile
.
Write
(ref
array
[num],
text
);
58
return
text
;
59
}
60
}
System.Threading.Volatile.Read
static bool Read(ref bool location)
Definition
Volatile.cs:67
System.Threading.Volatile.Write
static void Write(ref bool location, bool value)
Definition
Volatile.cs:74
System.Threading.Volatile
Definition
Volatile.cs:9
System.Reflection.Emit.OpCodeValues
OpCodeValues
Definition
OpCodeValues.cs:4
System.Reflection.CustomAttributeEncoding.Enum
@ Enum
System.ExceptionArgument.text
@ text
System.ExceptionArgument.array
@ array
System.Reflection.Emit.OpCode.Size
int Size
Definition
OpCode.cs:24
System.Reflection.Emit.OpCode.Value
short Value
Definition
OpCode.cs:26
System.Reflection.Emit.OpCode.g_nameCache
static volatile string[] g_nameCache
Definition
OpCode.cs:12
Referenced by
System.Reflection.Emit.OpCode.ToString()
.
System
Reflection
Emit
OpCode
Generated by
1.10.0