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

◆ IsSpecialXmlType()

static bool System.Runtime.Serialization.SchemaExporter.IsSpecialXmlType ( Type type,
[NotNullWhen(true)] out XmlQualifiedName typeName,
[NotNullWhen(true)] out XmlSchemaType xsdType,
out bool hasRoot )
inlinestaticpackage

Definition at line 929 of file SchemaExporter.cs.

930 {
931 xsdType = null;
932 hasRoot = true;
933 if (type == Globals.TypeOfXmlElement || type == Globals.TypeOfXmlNodeArray)
934 {
935 string text = null;
936 if (type == Globals.TypeOfXmlElement)
937 {
939 text = "XmlElement";
940 hasRoot = false;
941 }
942 else
943 {
945 text = "ArrayOfXmlNode";
946 hasRoot = true;
947 }
948 typeName = new XmlQualifiedName(text, DataContract.GetDefaultStableNamespace(type));
949 return true;
950 }
951 typeName = null;
952 return false;
953 }
static XmlSchemaComplexType CreateAnyType()
static XmlSchemaComplexType CreateAnyElementType()

References System.Runtime.Serialization.SchemaExporter.CreateAnyElementType(), System.Runtime.Serialization.SchemaExporter.CreateAnyType(), System.Runtime.Serialization.DataContract.GetDefaultStableNamespace(), System.text, System.type, System.Runtime.Serialization.Globals.TypeOfXmlElement, and System.Runtime.Serialization.Globals.TypeOfXmlNodeArray.

Referenced by System.Runtime.Serialization.SchemaExporter.ExportXmlDataContract(), and System.Runtime.Serialization.SchemaExporter.GetXmlTypeInfo().