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

◆ CreateMessage()

static string System.Xml.XmlException.CreateMessage ( string res,
string[] args,
int lineNumber,
int linePosition )
inlinestaticprivate

Definition at line 206 of file XmlException.cs.

207 {
208 try
209 {
210 string text;
211 if (args != null)
212 {
213 object[] args2 = args;
214 text = string.Format(res, args2);
215 }
216 else
217 {
218 text = res;
219 }
220 string text2 = text;
221 if (lineNumber != 0)
222 {
223 string text3 = lineNumber.ToString(CultureInfo.InvariantCulture);
224 string text4 = linePosition.ToString(CultureInfo.InvariantCulture);
226 object[] args2 = new string[3] { text2, text3, text4 };
228 }
229 return text2;
230 }
232 {
233 return "UNKNOWN(" + res + ")";
234 }
235 }
static CultureInfo InvariantCulture
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_MessageWithErrorPosition
Definition SR.cs:60
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Format(), System.Globalization.CultureInfo.InvariantCulture, System.text, and System.SR.Xml_MessageWithErrorPosition.

Referenced by System.Xml.XmlException.XmlException(), and System.Xml.XmlException.FormatUserMessage().