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

◆ BaseTypeName()

static XmlQualifiedName System.Xml.Serialization.XmlSchemaImporter.BaseTypeName ( XmlSchemaSimpleType dataType)
inlinestaticpackage

Definition at line 1904 of file XmlSchemaImporter.cs.

1905 {
1906 XmlSchemaSimpleTypeContent content = dataType.Content;
1908 {
1909 return ((XmlSchemaSimpleTypeRestriction)content).BaseTypeName;
1910 }
1911 if (content is XmlSchemaSimpleTypeList)
1912 {
1914 if (xmlSchemaSimpleTypeList.ItemTypeName != null && !xmlSchemaSimpleTypeList.ItemTypeName.IsEmpty)
1915 {
1916 return xmlSchemaSimpleTypeList.ItemTypeName;
1917 }
1918 if (xmlSchemaSimpleTypeList.ItemType != null)
1919 {
1920 return BaseTypeName(xmlSchemaSimpleTypeList.ItemType);
1921 }
1922 }
1923 return new XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema");
1924 }
static XmlQualifiedName BaseTypeName(XmlSchemaSimpleType dataType)

References System.Xml.Serialization.XmlSchemaImporter.BaseTypeName(), and System.Xml.Schema.XmlSchemaSimpleType.Content.

Referenced by System.Xml.Serialization.XmlSchemaImporter.BaseTypeName(), and System.Xml.Serialization.XmlSchemaImporter.GetDataTypeSource().