FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (15)
258else if (type is XmlSchemaSimpleType)
259mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, false);
577private TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList)
617private TypeMapping ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, bool isList)
623XmlSchemaSimpleType sourceDataType = FindDataType(dataType.DerivedFrom);
668private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType)
677private PrimitiveMapping ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string ns)
694private TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType)
708private XmlSchemaSimpleType FindDataType(XmlQualifiedName name)
711if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
712return (XmlSchemaSimpleType)typeDesc.DataType;
713XmlSchemaSimpleType dataType = (XmlSchemaSimpleType)Schemas.Find(name, typeof(XmlSchemaSimpleType));
719return (XmlSchemaSimpleType)Scope.GetTypeDesc(typeof(string)).DataType;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (20)
393mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType, TypeFlags.CanBeElementValue | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeTextValue, false);
542else if (type is XmlSchemaSimpleType)
543mapping = ImportDataType((XmlSchemaSimpleType)type, name.Namespace, name.Name, baseType, flags, false);
709private StructMapping ImportStructDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType)
1721mapping = ImportDataType((XmlSchemaSimpleType)attribute.SchemaType, ns, identifier, null, TypeFlags.CanBeAttributeValue, false);
1765private TypeMapping ImportDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, Type baseType, TypeFlags flags, bool isList)
1827private TypeMapping ImportEnumeratedDataType(XmlSchemaSimpleType dataType, string typeNs, string identifier, TypeFlags flags, bool isList)
1839TypeDesc sourceTypeDesc = Scope.GetTypeDesc((XmlSchemaSimpleType)sourceType);
1927private PrimitiveMapping ImportPrimitiveDataType(XmlSchemaSimpleType dataType, TypeFlags flags)
1937private PrimitiveMapping ImportNonXsdPrimitiveDataType(XmlSchemaSimpleType dataType, string ns, TypeFlags flags)
1973internal static XmlQualifiedName BaseTypeName(XmlSchemaSimpleType dataType)
1993private TypeDesc GetDataTypeSource(XmlSchemaSimpleType dataType, TypeFlags flags)
2010private XmlSchemaSimpleType FindDataType(XmlQualifiedName name, TypeFlags flags)
2014return (XmlSchemaSimpleType)Scope.GetTypeDesc(typeof(string)).DataType;
2017if (typeDesc != null && typeDesc.DataType is XmlSchemaSimpleType)
2018return (XmlSchemaSimpleType)typeDesc.DataType;
2019XmlSchemaSimpleType dataType = (XmlSchemaSimpleType)Schemas.Find(name, typeof(XmlSchemaSimpleType));
2025return (XmlSchemaSimpleType)Scope.GetTypeDesc("string", XmlSchema.Namespace, flags).DataType;
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (15)
2392else if (ai is Microsoft.Xml.Schema.XmlSchemaSimpleType)
2394Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)ai), false, false);
2878else if (o.@SchemaType is Microsoft.Xml.Schema.XmlSchemaSimpleType)
2880Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)o.@SchemaType), false, false);
3113private void Write34_XmlSchemaSimpleType(string n, string ns, Microsoft.Xml.Schema.XmlSchemaSimpleType o, bool isNullable, bool needType)
3123if (t == typeof(Microsoft.Xml.Schema.XmlSchemaSimpleType))
3211Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)o.@ItemType), false, false);
3250Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)o.@BaseType), false, false);
3882Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)a[ia]), false, false);
4132Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)o.@SchemaType), false, false);
4692Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)o.@BaseType), false, false);
5082if (ai is Microsoft.Xml.Schema.XmlSchemaSimpleType)
5084Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaSimpleType)ai), false, false);
9249private Microsoft.Xml.Schema.XmlSchemaSimpleType Read34_XmlSchemaSimpleType(bool isNullable, bool checkType)
9264Microsoft.Xml.Schema.XmlSchemaSimpleType o;