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

◆ ConvertToNodeType()

XmlNodeType System.Xml.XmlDocument.ConvertToNodeType ( string nodeTypeString)
inlinepackage

Definition at line 1225 of file XmlDocument.cs.

1226 {
1227 return nodeTypeString switch
1228 {
1229 "element" => XmlNodeType.Element,
1230 "attribute" => XmlNodeType.Attribute,
1231 "text" => XmlNodeType.Text,
1232 "cdatasection" => XmlNodeType.CDATA,
1233 "entityreference" => XmlNodeType.EntityReference,
1234 "entity" => XmlNodeType.Entity,
1235 "processinginstruction" => XmlNodeType.ProcessingInstruction,
1236 "comment" => XmlNodeType.Comment,
1237 "document" => XmlNodeType.Document,
1238 "documenttype" => XmlNodeType.DocumentType,
1239 "documentfragment" => XmlNodeType.DocumentFragment,
1240 "notation" => XmlNodeType.Notation,
1241 "significantwhitespace" => XmlNodeType.SignificantWhitespace,
1242 "whitespace" => XmlNodeType.Whitespace,
1244 };
1245 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xdom_Invalid_NT_String
Definition SR.cs:1308
Definition SR.cs:7

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

Referenced by System.Xml.XmlDocument.CreateNode().