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

◆ ValidateNode()

override void System.Xml.Linq.XElement.ValidateNode ( XNode node,
XNode previous )
inlinepackagevirtual

Reimplemented from System.Xml.Linq.XContainer.

Definition at line 1253 of file XElement.cs.

1254 {
1255 if (node is XDocument)
1256 {
1257 throw new ArgumentException(System.SR.Format(System.SR.Argument_AddNode, XmlNodeType.Document));
1258 }
1259 if (node is XDocumentType)
1260 {
1261 throw new ArgumentException(System.SR.Format(System.SR.Argument_AddNode, XmlNodeType.DocumentType));
1262 }
1263 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_AddNode
Definition SR.cs:16
Definition SR.cs:7

References System.SR.Argument_AddNode, System.Xml.ArgumentException, and System.SR.Format().