System\Xml\Serialization\XmlSchemaImporter.cs (20)
348mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType, TypeFlags.CanBeElementValue | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeTextValue, false)!;
431else if (type is XmlSchemaSimpleType)
432mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false);
606private StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, Type baseType)
1622mapping = ImportDataType((XmlSchemaSimpleType)attribute.SchemaType, ns, identifier, null, TypeFlags.CanBeAttributeValue, false);
1663private TypeMapping? ImportDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, Type? baseType, TypeFlags flags, bool isList)
1725private TypeMapping? ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string? typeNs, string identifier, TypeFlags flags, bool isList)
1737TypeDesc? sourceTypeDesc = TypeScope.GetTypeDesc((XmlSchemaSimpleType)sourceType);
1827private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType, TypeFlags flags)
1837private static PrimitiveMapping? ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string? ns, TypeFlags flags)
1873internal static XmlQualifiedName BaseTypeName(XmlSchemaSimpleType dataType)
1893private TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType, TypeFlags flags)
1911private XmlSchemaSimpleType? FindDataType(XmlQualifiedName? name, TypeFlags flags)
1915return (XmlSchemaSimpleType?)Scope.GetTypeDesc(typeof(string)).DataType;
1919if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
1920return (XmlSchemaSimpleType)typeDesc.DataType;
1922XmlSchemaSimpleType? dataType = (XmlSchemaSimpleType?)Schemas.Find(name, typeof(XmlSchemaSimpleType));
1930return (XmlSchemaSimpleType?)TypeScope.GetTypeDesc("string", XmlSchema.Namespace, flags)!.DataType;