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

◆ XmlException() [1/19]

System.Xml.XmlException.XmlException ( SerializationInfo info,
StreamingContext context )
inlineprotected

Definition at line 44 of file XmlException.cs.

45 : base(info, context)
46 {
47 _res = (string)info.GetValue("res", typeof(string));
48 _args = (string[])info.GetValue("args", typeof(string[]));
49 _lineNumber = (int)info.GetValue("lineNumber", typeof(int));
50 _linePosition = (int)info.GetValue("linePosition", typeof(int));
51 _sourceUri = string.Empty;
52 string text = null;
54 while (enumerator.MoveNext())
55 {
56 SerializationEntry current = enumerator.Current;
57 string name = current.Name;
58 if (!(name == "sourceUri"))
59 {
60 if (name == "version")
61 {
62 text = (string)current.Value;
63 }
64 }
65 else
66 {
67 _sourceUri = (string)current.Value;
68 }
69 }
70 if (text == null)
71 {
73 }
74 else
75 {
76 _message = null;
77 }
78 }
readonly string _res
readonly int _linePosition
static string CreateMessage(string res, string[] args, int lineNumber, int linePosition)
readonly string _message
readonly string[] _args
readonly string _sourceUri

References System.Xml.XmlException._args, System.Xml.XmlException._lineNumber, System.Xml.XmlException._linePosition, System.Xml.XmlException._message, System.Xml.XmlException._res, System.Xml.XmlException._sourceUri, System.Xml.XmlException.CreateMessage(), System.Xml.Dictionary, System.info, System.Runtime.Serialization.SerializationEntry.Name, System.text, and System.Runtime.Serialization.SerializationEntry.Value.