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

◆ XmlDeclaration()

System.Xml.XmlDeclaration.XmlDeclaration ( string version,
string? encoding,
string? standalone,
XmlDocument doc )
inlinepackage

Definition at line 140 of file XmlDeclaration.cs.

141 : base(doc)
142 {
143 if (!IsValidXmlVersion(version))
144 {
146 }
147 if (standalone != null && standalone.Length > 0 && standalone != "yes" && standalone != "no")
148 {
150 }
151 Encoding = encoding;
153 Version = version;
154 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xdom_Version
Definition SR.cs:1288
static string Xdom_standalone
Definition SR.cs:1290
Definition SR.cs:7
bool IsValidXmlVersion(string ver)

References System.Xml.ArgumentException, System.Xml.Dictionary, System.SR.Format(), System.Xml.XmlDeclaration.IsValidXmlVersion(), System.Xml.XmlDeclaration.Standalone, System.SR.Xdom_standalone, and System.SR.Xdom_Version.