System\Xml\Serialization\XmlSchemaImporter.cs (20)
332mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType, TypeFlags.CanBeElementValue | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeTextValue, false)!;
413else if (type is XmlSchemaSimpleType)
414mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false);
584private StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, Type baseType)
1585mapping = ImportDataType((XmlSchemaSimpleType)attribute.SchemaType, ns, identifier, null, TypeFlags.CanBeAttributeValue, false);
1625private TypeMapping? ImportDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, Type? baseType, TypeFlags flags, bool isList)
1686private TypeMapping? ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, TypeFlags flags, bool isList)
1698TypeDesc? sourceTypeDesc = TypeScope.GetTypeDesc((XmlSchemaSimpleType)sourceType);
1787private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType, TypeFlags flags)
1797private static PrimitiveMapping? ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string? ns, TypeFlags flags)
1833internal static XmlQualifiedName BaseTypeName(XmlSchemaSimpleType dataType)
1853private TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType, TypeFlags flags)
1871private XmlSchemaSimpleType? FindDataType(XmlQualifiedName? name, TypeFlags flags)
1875return (XmlSchemaSimpleType?)Scope.GetTypeDesc(typeof(string)).DataType;
1879if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
1880return (XmlSchemaSimpleType)typeDesc.DataType;
1882XmlSchemaSimpleType? dataType = (XmlSchemaSimpleType?)Schemas.Find(name, typeof(XmlSchemaSimpleType));
1890return (XmlSchemaSimpleType?)TypeScope.GetTypeDesc("string", XmlSchema.Namespace, flags)!.DataType;