Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToString()

override string System.BadImageFormatException.ToString ( )
inline

Definition at line 97 of file BadImageFormatException.cs.

98 {
99 string text = GetType().ToString() + ": " + Message;
100 if (!string.IsNullOrEmpty(_fileName))
101 {
102 text = text + "\r\n" + SR.Format(SR.IO_FileName_Name, _fileName);
103 }
104 if (base.InnerException != null)
105 {
106 text = text + " ---> " + base.InnerException.ToString();
107 }
108 if (StackTrace != null)
109 {
110 text = text + "\r\n" + StackTrace;
111 }
112 if (_fusionLog != null)
113 {
114 if (text == null)
115 {
116 text = " ";
117 }
118 text = text + "\r\n\r\n" + _fusionLog;
119 }
120 return text;
121 }
virtual ? string StackTrace
Definition Exception.cs:143
new Type GetType()
Definition Exception.cs:437
override string ToString()
Definition Type.cs:1108

References System.BadImageFormatException._fileName, System.BadImageFormatException._fusionLog, System.Runtime.Serialization.Dictionary, System.SR.Format(), System.Exception.GetType(), System.SR.IO_FileName_Name, System.BadImageFormatException.Message, System.Exception.StackTrace, System.text, and System.Type.ToString().