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 }
static bool Read(ref bool location)
Definition Volatile.cs:67
static void Write(ref bool location, bool value)
Definition Volatile.cs:74
static volatile string[] g_nameCache
Definition OpCode.cs:12

Referenced by System.Reflection.Emit.OpCode.ToString().