System\Xml\Serialization\SoapSchemaImporter.cs (15)
236else if (type is XmlSchemaSimpleType)
237mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, false);
514TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList) {
546TypeMapping ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList) {
551XmlSchemaSimpleType sourceDataType = FindDataType(dataType.DerivedFrom);
594PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType) {
602PrimitiveMapping ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string ns) {
616TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType) {
627XmlSchemaSimpleType FindDataType(XmlQualifiedName name) {
629if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
630return (XmlSchemaSimpleType)typeDesc.DataType;
631XmlSchemaSimpleType dataType = (XmlSchemaSimpleType)Schemas.Find(name, typeof(XmlSchemaSimpleType));
636return (XmlSchemaSimpleType)Scope.GetTypeDesc(typeof(string)).DataType;
System\Xml\Serialization\XmlSchemaImporter.cs (20)
354mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType, TypeFlags.CanBeElementValue | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeTextValue, false);
477else if (type is XmlSchemaSimpleType)
478mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false);
622StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType) {
1503mapping = ImportDataType((XmlSchemaSimpleType)attribute.SchemaType, ns, identifier, null, TypeFlags.CanBeAttributeValue, false);
1540TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType, TypeFlags flags, bool isList) {
1590TypeMapping ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, TypeFlags flags, bool isList) {
1600TypeDesc sourceTypeDesc = Scope.GetTypeDesc((XmlSchemaSimpleType)sourceType);
1679PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType, TypeFlags flags) {
1688PrimitiveMapping ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string ns, TypeFlags flags) {
1719internal static XmlQualifiedName BaseTypeName(XmlSchemaSimpleType dataType) {
1735TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType, TypeFlags flags) {
1750XmlSchemaSimpleType FindDataType(XmlQualifiedName name, TypeFlags flags) {
1752return (XmlSchemaSimpleType)Scope.GetTypeDesc(typeof(string)).DataType;
1755if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
1756return (XmlSchemaSimpleType)typeDesc.DataType;
1757XmlSchemaSimpleType dataType = (XmlSchemaSimpleType)Schemas.Find(name, typeof(XmlSchemaSimpleType));
1762return (XmlSchemaSimpleType)Scope.GetTypeDesc("string", XmlSchema.Namespace, flags).DataType;