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

◆ ReflectionXmlSerializationWriter()

System.Xml.Serialization.ReflectionXmlSerializationWriter.ReflectionXmlSerializationWriter ( XmlMapping xmlMapping,
XmlWriter xmlWriter,
XmlSerializerNamespaces namespaces,
string encodingStyle,
string id )
inline

Definition at line 25 of file ReflectionXmlSerializationWriter.cs.

26 {
28 if (!xmlMapping.IsWriteable || !xmlMapping.GenerateSerializer)
29 {
30 throw new ArgumentException(System.SR.Format(System.SR.XmlInternalError, "xmlMapping"));
31 }
32 if (xmlMapping is XmlTypeMapping || xmlMapping is XmlMembersMapping)
33 {
35 return;
36 }
37 throw new ArgumentException(System.SR.Format(System.SR.XmlInternalError, "xmlMapping"));
38 }
static string XmlInternalError
Definition SR.cs:1812
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
void Init(XmlWriter w, XmlSerializerNamespaces namespaces, string encodingStyle, string idBase, TempAssembly tempAssembly)

References System.Xml.Serialization.ReflectionXmlSerializationWriter._mapping, System.Xml.ArgumentException, System.Xml.Dictionary, System.SR.Format(), System.Xml.Serialization.XmlSerializationWriter.Init(), and System.SR.XmlInternalError.