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
BadImageFormatException.cs
Go to the documentation of this file.
1using System;
2using System.IO;
4
5namespace System
6{
7 // Token: 0x0200008F RID: 143
10 {
11 // Token: 0x0600040C RID: 1036 RVA: 0x0000C70C File Offset: 0x0000A90C
13 : base("Format of the executable (.exe) or library (.dll) is invalid.")
14 {
15 this._HResult = 11;
16 }
17
18 // Token: 0x0600040D RID: 1037 RVA: 0x0000C72C File Offset: 0x0000A92C
19 public BadImageFormatException(string message)
20 : base(message)
21 {
22 this._HResult = 11;
23 }
24
25 // Token: 0x0600040E RID: 1038 RVA: 0x0000C748 File Offset: 0x0000A948
26 public BadImageFormatException(string message, Exception inner)
27 : base(message, inner)
28 {
29 this._HResult = 11;
30 }
31
32 // Token: 0x0600040F RID: 1039 RVA: 0x0000C768 File Offset: 0x0000A968
33 public BadImageFormatException(string message, string fileName)
34 : base(message)
35 {
36 this._HResult = 11;
37 this._fileName = fileName;
38 }
39
40 // Token: 0x06000410 RID: 1040 RVA: 0x0000C78C File Offset: 0x0000A98C
42 : base(info, context)
43 {
44 string @string = info.GetString("BadImageFormat_FileName");
45 this._fileName = @string;
46 string string2 = info.GetString("BadImageFormat_FusionLog");
48 }
49
50 // Token: 0x06000411 RID: 1041 RVA: 0x0000C7C8 File Offset: 0x0000A9C8
52 {
53 base.GetObjectData(info, context);
54 string fileName = this._fileName;
55 if (!true)
56 {
57 }
58 Type type;
59 info.AddValue("BadImageFormat_FileName", fileName, type);
60 string fusionLog = this._fusionLog;
61 Type type2;
62 info.AddValue("BadImageFormat_FusionLog", fusionLog, type2);
63 }
64
65 // Token: 0x17000065 RID: 101
66 // (get) Token: 0x06000412 RID: 1042 RVA: 0x0000C808 File Offset: 0x0000AA08
67 public override string Message
68 {
69 get
70 {
71 this.SetMessageField();
72 return this._message;
73 }
74 }
75
76 // Token: 0x06000413 RID: 1043 RVA: 0x0000C824 File Offset: 0x0000AA24
77 private void SetMessageField()
78 {
79 if (this._message == null)
80 {
81 string fileName = this._fileName;
82 int hresult = this._HResult;
83 if (fileName == null)
84 {
85 this._message = "Format of the executable (.exe) or library (.dll) is invalid.";
86 return;
87 }
90 }
91 }
92
93 // Token: 0x06000414 RID: 1044 RVA: 0x0000C868 File Offset: 0x0000AA68
94 public override string ToString()
95 {
96 Type type = base.GetType();
97 string fileName = this._fileName;
98 if (fileName != null && fileName._stringLength != 0)
99 {
100 string newLine = Environment.NewLine;
101 string fileName2 = this._fileName;
102 string text = SR.Format("File name: '{0}'", fileName2);
103 string text3;
104 string text2 = text3 + newLine + text;
105 }
106 if (this._innerException != null)
107 {
108 }
109 if (this != null)
110 {
112 }
113 string text4;
114 if (this._fusionLog != null)
115 {
117 string text5;
118 text4 = text5 + newLine3;
120 string text6 = text4 + newLine4;
121 string fusionLog = this._fusionLog;
122 return text6 + fusionLog;
123 }
124 return text4;
125 }
126
127 // Token: 0x040001FB RID: 507
128 private string _fileName;
129
130 // Token: 0x040001FC RID: 508
131 private string _fusionLog;
132 }
133}
class f__AnonymousType0<< Count > j__TPar
static string Format(string resourceFormat, params object[] args)
Definition SR.cs:33
Definition SR.cs:7
BadImageFormatException(string message, string fileName)
BadImageFormatException(SerializationInfo info, StreamingContext context)
BadImageFormatException(string message, Exception inner)
override void GetObjectData(SerializationInfo info, StreamingContext context)
static string NewLine
Exception _innerException
Definition Exception.cs:418
static string FormatFileLoadExceptionMessage(string fileName, int hResult)
new Type GetType()
Definition Type.cs:287