FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (12)
52XmlSchemaType xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType;
91XmlSchemaType xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; //TODO special case for xsd:duration and xsd:dateTime
141XmlSchemaType xmlType;
179XmlSchemaType xmlType;
732private Task<Tuple<XmlSchemaType, object>> InternalReadElementContentAsObjectAsync()
737private async Task<Tuple<XmlSchemaType, object>> InternalReadElementContentAsObjectAsync(bool unwrapTypedValue)
741return new Tuple<XmlSchemaType, object>(tuple_13.Item1, tuple_13.Item3);
744private async Task<Tuple<XmlSchemaType, string, object>> InternalReadElementContentAsObjectTupleAsync(bool unwrapTypedValue)
746Tuple<XmlSchemaType, string, object> tuple;
747XmlSchemaType xmlType;
768tuple = new Tuple<XmlSchemaType, string, object>(xmlType, originalString, typedValue);
816tuple = new Tuple<XmlSchemaType, string, object>(xmlType, originalString, typedValue);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (14)
90foreach (XmlSchemaType type in schema.SchemaTypes.Values)
151foreach (XmlSchemaType type in _schemaTypes.Values)
199foreach (XmlSchemaType type in _schemaTypes.Values)
240foreach (XmlSchemaType type in _schemaTypes.Values)
357if (simpleType == XmlSchemaType.GetBuiltInSimpleType(simpleType.TypeCode))
446if (!XmlSchemaType.IsDerivedFrom(element.ElementSchemaType, headElement.ElementSchemaType, headElement.FinalResolved))
882XmlSchemaType bto = GetAnySchemaType(simpleExtension.BaseTypeName);
938if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype, baseType.Datatype, XmlSchemaDerivationMethod.None))
1657XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union))))
2259else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty))
2327else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty))
3203private XmlSchemaType GetAnySchemaType(XmlQualifiedName name)
3205XmlSchemaType type = (XmlSchemaType)_schemaTypes[name];
FrameworkFork\Microsoft.Xml\Xml\schema\XmlAtomicValue.cs (11)
24private XmlSchemaType _xmlType;
80internal XmlAtomicValue(XmlSchemaType xmlType, bool value)
88internal XmlAtomicValue(XmlSchemaType xmlType, DateTime value)
96internal XmlAtomicValue(XmlSchemaType xmlType, double value)
104internal XmlAtomicValue(XmlSchemaType xmlType, int value)
112internal XmlAtomicValue(XmlSchemaType xmlType, long value)
120internal XmlAtomicValue(XmlSchemaType xmlType, string value)
128internal XmlAtomicValue(XmlSchemaType xmlType, string value, IXmlNamespaceResolver nsResolver)
141internal XmlAtomicValue(XmlSchemaType xmlType, object value)
149internal XmlAtomicValue(XmlSchemaType xmlType, object value, IXmlNamespaceResolver nsResolver)
196public override XmlSchemaType XmlType
FrameworkFork\Microsoft.Xml\Xml\schema\XmlValueConverter.cs (48)
279private XmlSchemaType _schemaType;
283protected XmlBaseConverter(XmlSchemaType schemaType)
295schemaType = XmlSchemaType.GetBuiltInSimpleType(datatype.TypeCode);
492protected XmlSchemaType SchemaType
512XmlSchemaType type = _schemaType;
970protected XmlNumeric10Converter(XmlSchemaType schemaType) : base(schemaType)
974public static XmlValueConverter Create(XmlSchemaType schemaType)
1308protected XmlNumeric2Converter(XmlSchemaType schemaType) : base(schemaType)
1312public static XmlValueConverter Create(XmlSchemaType schemaType)
1537protected XmlDateTimeConverter(XmlSchemaType schemaType) : base(schemaType)
1541public static XmlValueConverter Create(XmlSchemaType schemaType)
1814protected XmlBooleanConverter(XmlSchemaType schemaType) : base(schemaType)
1818public static XmlValueConverter Create(XmlSchemaType schemaType)
1984protected XmlMiscConverter(XmlSchemaType schemaType) : base(schemaType)
1988public static XmlValueConverter Create(XmlSchemaType schemaType)
2272protected XmlStringConverter(XmlSchemaType schemaType) : base(schemaType)
2276public static XmlValueConverter Create(XmlSchemaType schemaType)
3195if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
3205if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
3215if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
3225if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3235if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
3245if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value));
3255if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value));
3265if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3276if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value));
3324if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value));
3325if (sourceType == ByteType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value));
3326if (sourceType == ByteArrayType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value));
3327if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value));
3328if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value));
3329if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value));
3330if (sourceType == DoubleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value));
3331if (sourceType == Int16Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value));
3332if (sourceType == Int32Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value));
3333if (sourceType == Int64Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value));
3334if (sourceType == SByteType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value));
3335if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value));
3336if (sourceType == StringType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value));
3337if (sourceType == TimeSpanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value));
3338if (sourceType == UInt16Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value));
3339if (sourceType == UInt32Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value));
3340if (sourceType == UInt64Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value));
3341if (IsDerivedFrom(sourceType, UriType)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value));
3342if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName), value, nsResolver));
3436protected XmlListConverter(XmlSchemaType schemaType) : base(schemaType)
3671protected XmlUnionConverter(XmlSchemaType schemaType) : base(schemaType)
3694public static XmlValueConverter Create(XmlSchemaType schemaType)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Advanced\SchemaImporterExtension.cs (3)
32public virtual string ImportSchemaType(XmlSchemaType type, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter importer,
159private XmlSchemaType _xsdType;
167internal MappedTypeDesc(string clrType, string name, string ns, XmlSchemaType xsdType, XmlSchemaObject context, SchemaImporterExtension extension, CodeNamespace code, StringCollection references)
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (16)
336if (typeof(XmlSchemaType).IsAssignableFrom(t))
339XmlSchemaType baseType = null;
423XmlSchemaType type = (XmlSchemaType)_schemas.Find(memberTypes[i], typeof(XmlSchemaType), false);
430baseType = (XmlSchemaType)_schemas.Find(baseName, typeof(XmlSchemaType), false);
466XmlSchemaType type = (XmlSchemaType)_schemas.Find(el.SchemaTypeName, typeof(XmlSchemaType), false);
512XmlSchemaType type = (XmlSchemaType)_schemas.Find(at.SchemaTypeName, typeof(XmlSchemaType), false);
533XmlSchemaType type = (XmlSchemaType)_schemas.Find(qname, typeof(XmlSchemaType), false);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (6)
81private XmlSchemaType _dataType;
92internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind, TypeDesc baseTypeDesc, TypeFlags flags, string formatterName)
112internal TypeDesc(string name, string fullName, XmlSchemaType dataType, TypeKind kind, TypeDesc baseTypeDesc, TypeFlags flags)
116: this(name, fullName, (XmlSchemaType)null, kind, baseTypeDesc, flags, null) { }
118internal TypeDesc(Type type, bool isXsdType, XmlSchemaType dataType, string formatterName, TypeFlags flags)
178internal XmlSchemaType DataType
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (16)
64XmlSchemaType type = ExportSpecialMapping(special, xmlMembersMapping.Accessor.Namespace, false, null);
125private static XmlSchemaType FindSchemaType(string name, XmlSchemaObjectCollection items)
130XmlSchemaType type = o as XmlSchemaType;
139private static bool IsAnyType(XmlSchemaType schemaType, bool mixed, bool unbounded)
169XmlSchemaType schemaType = FindSchemaType(name, schema.Items);
215XmlSchemaType schemaType = FindSchemaType(name, schema.Items);
286XmlSchemaType type = o as XmlSchemaType;
451private XmlSchemaType ExportSpecialMapping(SpecialMapping mapping, string ns, bool isAny, XmlSchemaElement element)
511XmlSchemaType type = serializableMapping.XsdType;
520type = (XmlSchemaType)schema.SchemaTypes[serializableMapping.XsiType];
580private XmlSchemaType ExportMembersMapping(MembersMapping mapping, string ns)
593private XmlSchemaType ExportAnonymousPrimitiveMapping(PrimitiveMapping mapping)
610XmlSchemaType type = ExportEnumMapping((EnumMapping)mapping, ns);
1184private XmlSchemaType ExportEnumMapping(EnumMapping mapping, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (21)
420private void RunSchemaExtensions(TypeMapping mapping, XmlQualifiedName qname, XmlSchemaType type, XmlSchemaObject context, TypeFlags flags)
492object type = Schemas.Find(qname, typeof(XmlSchemaType));
514if (item is XmlSchemaType)
516XmlSchemaType type = (XmlSchemaType)item;
586private MembersMapping ImportMembersType(XmlSchemaType type, string typeNs, string identifier)
600private StructMapping ImportStructType(XmlSchemaType type, string typeNs, string identifier, Type baseType, bool arrayLike)
703private bool IsAllGroup(XmlSchemaType type)
739private MemberMapping[] ImportTypeMembers(XmlSchemaType type, string typeNs, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, ref bool needExplicitOrder, bool order, bool allowUnboundedElements)
747XmlSchemaType t = type;
792internal static bool IsMixed(XmlSchemaType type)
811private TypeItems GetTypeItems(XmlSchemaType type)
1349XmlSchemaType type = element.SchemaType;
1362private ArrayMapping ImportArrayMapping(XmlSchemaType type, string identifier, string ns, bool repeats)
1449XmlSchemaType refType = refElement.SchemaType;
1466private SpecialMapping ImportAnyMapping(XmlSchemaType type, string identifier, string ns, bool repeats)
1612private bool KeepXmlnsDeclarations(XmlSchemaType type, out string xmlnsMemberName)
1648private void ImportXmlnsDeclarationsMember(XmlSchemaType type, CodeIdentifiers members, CodeIdentifiers membersScope)
1833XmlSchemaType sourceType = dataType;
2039private XmlSchemaType FindType(XmlQualifiedName name, TypeFlags flags)
2128internal string FindExtendedType(XmlSchemaType type, XmlSchemaObject context, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, out SchemaImporterExtension extension)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (3)
17internal static void GetXmlTypeInfo(Type type, out XmlQualifiedName stableName, out XmlSchemaType xsdType, out bool hasRoot)
32private static bool InvokeSchemaProviderMethod(Type clrType, XmlSchemaSet schemas, out XmlQualifiedName stableName, out XmlSchemaType xsdType, out bool hasRoot)
113internal static bool IsSpecialXmlType(Type type, out XmlQualifiedName typeName, out XmlSchemaType xsdType, out bool hasRoot)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (20)
87ImportType((XmlSchemaType)typeObj);
177List<XmlSchemaType> knownTypes = schemaObjectInfo.knownTypes;
180foreach (XmlSchemaType knownType in knownTypes)
221List<XmlSchemaType> knownTypes = schemaObjectInfo.knownTypes;
225foreach (XmlSchemaType knownType in knownTypes)
245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>();
254XmlSchemaType schemaType = schemaObj as XmlSchemaType;
279baseTypeInfo.knownTypes = new List<XmlSchemaType>();
284baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<XmlSchemaType>());
314private XmlQualifiedName GetBaseTypeName(XmlSchemaType type)
394XmlSchemaType type = SchemaHelper.GetSchemaType(SchemaObjects, typeName);
404private DataContract ImportType(XmlSchemaType type)
410private DataContract ImportType(XmlSchemaType type, XmlQualifiedName typeName, bool isAnonymous)
704private DataContract ImportXmlDataType(XmlQualifiedName typeName, XmlSchemaType xsdType, bool isAnonymous)
742private XmlDataContract ImportSpecialXmlDataType(XmlSchemaType xsdType, bool isAnonymous)
1238private void ImportDataContractExtension(XmlSchemaType type, DataContract dataContract)
1266private void ImportGenericInfo(XmlSchemaType type, DataContract dataContract)
1290private GenericInfo ImportGenericInfo(XmlElement typeElement, XmlSchemaType type)