Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlProcessingInstruction.cs
Go to the documentation of this file.
3
4namespace System.Xml;
5
7{
8 private readonly string _target;
9
10 private string _data;
11
12 public override string Name
13 {
14 get
15 {
16 if (_target != null)
17 {
18 return _target;
19 }
20 return string.Empty;
21 }
22 }
23
24 public override string LocalName => Name;
25
26 public override string Value
27 {
28 get
29 {
30 return _data;
31 }
33 set
34 {
35 Data = value;
36 }
37 }
38
39 public string? Target => _target;
40
41 public string Data
42 {
43 get
44 {
45 return _data;
46 }
47 set
48 {
51 if (eventArgs != null)
52 {
54 }
55 _data = value;
56 if (eventArgs != null)
57 {
59 }
60 }
61 }
62
63 public override string InnerText
64 {
65 get
66 {
67 return _data;
68 }
69 set
70 {
71 Data = value;
72 }
73 }
74
75 public override XmlNodeType NodeType => XmlNodeType.ProcessingInstruction;
76
77 internal override string XPLocalName => Name;
78
79 internal override XPathNodeType XPNodeType => XPathNodeType.ProcessingInstruction;
80
81 protected internal XmlProcessingInstruction(string target, string data, XmlDocument doc)
82 : base(doc)
83 {
84 _target = target;
85 _data = data;
86 }
87
88 public override XmlNode CloneNode(bool deep)
89 {
91 }
92
93 public override void WriteTo(XmlWriter w)
94 {
95 w.WriteProcessingInstruction(_target, _data);
96 }
97
98 public override void WriteContentTo(XmlWriter w)
99 {
100 }
101}
virtual XmlProcessingInstruction CreateProcessingInstruction(string target, string data)
virtual XmlNodeChangedEventArgs GetEventArgs(XmlNode node, XmlNode oldParent, XmlNode newParent, string oldValue, string newValue, XmlNodeChangedAction action)
Definition XmlNode.cs:1239
virtual ? XmlNode ParentNode
Definition XmlNode.cs:76
virtual void AfterEvent(XmlNodeChangedEventArgs args)
Definition XmlNode.cs:1261
virtual void BeforeEvent(XmlNodeChangedEventArgs args)
Definition XmlNode.cs:1253
virtual ? XmlDocument OwnerDocument
Definition XmlNode.cs:109
XmlProcessingInstruction(string target, string data, XmlDocument doc)