terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
TypeLoadException.cs
Go to the documentation of this file.
1using System;
5
6namespace System
7{
8 // Token: 0x02000160 RID: 352
9 [ComVisible(true)]
12 {
13 // Token: 0x06000E2E RID: 3630 RVA: 0x0001EC58 File Offset: 0x0001CE58
15 : base("Failure has occurred while loading a type.")
16 {
17 base.SetErrorCode(5410);
18 }
19
20 // Token: 0x06000E2F RID: 3631 RVA: 0x0001EC7C File Offset: 0x0001CE7C
21 public TypeLoadException(string message)
22 : base(message)
23 {
24 base.SetErrorCode(5410);
25 }
26
27 // Token: 0x17000141 RID: 321
28 // (get) Token: 0x06000E30 RID: 3632 RVA: 0x0001EC9C File Offset: 0x0001CE9C
29 public override string Message
30 {
31 get
32 {
33 this.SetMessageField();
34 return this._message;
35 }
36 }
37
38 // Token: 0x06000E31 RID: 3633 RVA: 0x0001ECB8 File Offset: 0x0001CEB8
39 private void SetMessageField()
40 {
41 if (this._message == null)
42 {
43 string className = this.ClassName;
44 if (className == null && this.ResourceId == 0)
45 {
46 this._message = "Failure has occurred while loading a type.";
47 return;
48 }
49 if (this.AssemblyName == null)
50 {
51 this.AssemblyName = "[Unknown]";
52 }
53 if (className == null)
54 {
55 this.ClassName = "[Unknown]";
56 }
57 if ("[Unknown]" == null)
58 {
59 }
61 string className2 = this.ClassName;
62 string assemblyName = this.AssemblyName;
63 string messageArg = this.MessageArg;
64 string text = string.Format(currentCulture, "Could not load type '{0}' from assembly '{1}'.", className2, assemblyName, messageArg);
66 }
67 }
68
69 // Token: 0x06000E32 RID: 3634 RVA: 0x0001ED50 File Offset: 0x0001CF50
70 private TypeLoadException(string className, string assemblyName)
71 {
72 }
73
74 // Token: 0x06000E33 RID: 3635 RVA: 0x0001ED60 File Offset: 0x0001CF60
75 private TypeLoadException(string className, string assemblyName, string messageArg, int resourceId)
76 {
77 base.SetErrorCode(5410);
78 this.ClassName = className;
79 this.AssemblyName = assemblyName;
82 this.SetMessageField();
83 }
84
85 // Token: 0x06000E34 RID: 3636 RVA: 0x0001ED9C File Offset: 0x0001CF9C
87 {
88 do
89 {
90 base..ctor(info, context);
91 }
92 while (info == null);
93 string @string = info.GetString("TypeLoadClassName");
94 this.ClassName = @string;
95 string string2 = info.GetString("TypeLoadAssemblyName");
97 string string3 = info.GetString("TypeLoadMessageArg");
99 int @int = info.GetInt32("TypeLoadResourceID");
100 this.ResourceId = @int;
101 }
102
103 // Token: 0x06000E35 RID: 3637 RVA: 0x0001EE00 File Offset: 0x0001D000
105 {
106 while (info == null)
107 {
108 }
109 base.GetObjectData(info, context);
110 string className = this.ClassName;
111 if (!true)
112 {
113 }
114 Type type;
115 info.AddValue("TypeLoadClassName", className, type);
116 string assemblyName = this.AssemblyName;
117 Type type2;
118 info.AddValue("TypeLoadAssemblyName", assemblyName, type2);
119 string messageArg = this.MessageArg;
120 Type type3;
121 info.AddValue("TypeLoadMessageArg", messageArg, type3);
122 int resourceId = this.ResourceId;
123 info.AddValue("TypeLoadResourceID", resourceId);
124 }
125
126 // Token: 0x040005D5 RID: 1493
127 private string ClassName;
128
129 // Token: 0x040005D6 RID: 1494
130 private string AssemblyName;
131
132 // Token: 0x040005D7 RID: 1495
133 private string MessageArg;
134
135 // Token: 0x040005D8 RID: 1496
136 internal int ResourceId;
137 }
138}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo CurrentCulture
void AddValue(string name, object value, Type type)
TypeLoadException(string message)
TypeLoadException(SerializationInfo info, StreamingContext context)
TypeLoadException(string className, string assemblyName)
TypeLoadException(string className, string assemblyName, string messageArg, int resourceId)
override void GetObjectData(SerializationInfo info, StreamingContext context)