Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlAttributeEventArgs.cs
Go to the documentation of this file.
2
4{
5 private readonly object _o;
6
7 private readonly XmlAttribute _attr;
8
9 private readonly string _qnames;
10
11 private readonly int _lineNumber;
12
13 private readonly int _linePosition;
14
15 public object? ObjectBeingDeserialized => _o;
16
18
19 public int LineNumber => _lineNumber;
20
22
23 public string ExpectedAttributes
24 {
25 get
26 {
27 if (_qnames != null)
28 {
29 return _qnames;
30 }
31 return string.Empty;
32 }
33 }
34
35 internal XmlAttributeEventArgs(XmlAttribute attr, int lineNumber, int linePosition, object o, string qnames)
36 {
37 _attr = attr;
38 _o = o;
40 _lineNumber = lineNumber;
41 _linePosition = linePosition;
42 }
43}
XmlAttributeEventArgs(XmlAttribute attr, int lineNumber, int linePosition, object o, string qnames)