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

◆ FindDataType()

XmlSchemaSimpleType System.Xml.Serialization.XmlSchemaImporter.FindDataType ( XmlQualifiedName name,
TypeFlags flags )
inlineprivate

Definition at line 1949 of file XmlSchemaImporter.cs.

1950 {
1951 if (name == null || name.IsEmpty)
1952 {
1953 return (XmlSchemaSimpleType)base.Scope.GetTypeDesc(typeof(string)).DataType;
1954 }
1955 TypeDesc typeDesc = base.Scope.GetTypeDesc(name.Name, name.Namespace, flags);
1956 if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
1957 {
1958 return (XmlSchemaSimpleType)typeDesc.DataType;
1959 }
1961 if (xmlSchemaSimpleType != null)
1962 {
1963 return xmlSchemaSimpleType;
1964 }
1965 if (name.Namespace == "http://www.w3.org/2001/XMLSchema")
1966 {
1967 return (XmlSchemaSimpleType)base.Scope.GetTypeDesc("string", "http://www.w3.org/2001/XMLSchema", flags).DataType;
1968 }
1969 if (name.Name == "Array" && name.Namespace == "http://schemas.xmlsoap.org/soap/encoding/")
1970 {
1972 }
1974 }
static string XmlMissingDataType
Definition SR.cs:1500
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlInvalidEncoding
Definition SR.cs:1502
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Format(), System.SR.XmlInvalidEncoding, and System.SR.XmlMissingDataType.

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