2 types derived from XmlSchemaType
System.Private.Xml (2)
System\Xml\Schema\XmlSchemaComplexType.cs (1)
10public class XmlSchemaComplexType : XmlSchemaType
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
9public class XmlSchemaSimpleType : XmlSchemaType
1 instantiation of XmlSchemaType
System.Private.Xml (1)
System\Xml\Serialization\XmlSchemaImporter.cs (1)
357mapping = ImportMembersType(new XmlSchemaType(), ns, identifier);
387 references to XmlSchemaType
netstandard (1)
netstandard.cs (1)
2368[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaType))]
System.Data.Common (4)
System\Data\XMLSchema.cs (4)
204if (item is XmlSchemaType) 209MSDATATargetNamespace = XSDSchema.GetMsdataAttribute((XmlSchemaType)item, Keywords.TARGETNAMESPACE); 212XmlSchemaType type = (XmlSchemaType)item;
System.Private.DataContractSerialization (42)
System\Runtime\Serialization\Globals.cs (1)
202s_typeOfXmlSchemaType ??= typeof(XmlSchemaType);
System\Runtime\Serialization\SchemaExporter.cs (9)
509XmlSchemaType? xsdType; 533XmlSchemaType? anonymousType = xsdType; 572else if (item is XmlSchemaType) 575qname = new XmlQualifiedName(((XmlSchemaType)item).Name, schema.TargetNamespace); 593internal static void GetXmlTypeInfo(Type type, out XmlQualifiedName xmlName, out XmlSchemaType? xsdType, out bool hasRoot) 606private static bool InvokeSchemaProviderMethod(Type clrType, XmlSchemaSet schemas, out XmlQualifiedName xmlName, out XmlSchemaType? xsdType, out bool hasRoot) 637throw new InvalidDataContractException(SR.Format(SR.InvalidReturnTypeOnGetSchemaMethod, DataContract.GetClrTypeFullName(clrType), methodName, DataContract.GetClrTypeFullName(getMethod.ReturnType), DataContract.GetClrTypeFullName(Globals.TypeOfXmlQualifiedName), typeof(XmlSchemaType))); 655if (typeInfo is XmlSchemaType providerXsdType) 747internal static bool IsSpecialXmlType(Type type, [NotNullWhen(true)] out XmlQualifiedName? typeName, [NotNullWhen(true)] out XmlSchemaType? xsdType, out bool hasRoot)
System\Runtime\Serialization\SchemaHelper.cs (7)
15internal XmlSchemaType? _type; 18internal List<XmlSchemaType>? _knownTypes; 20internal SchemaObjectInfo(XmlSchemaType? type, XmlSchemaElement? element, XmlSchema? schema, List<XmlSchemaType>? knownTypes) 51internal static XmlSchemaType? GetSchemaType(SchemaObjectDictionary schemaInfo, XmlQualifiedName typeName) 61internal static XmlSchemaType? GetSchemaType(XmlSchemaSet schemas, XmlQualifiedName typeQName, out XmlSchema? outSchema) 73if (schemaObj is XmlSchemaType schemaType && schemaType.Name == typeQName.Name)
System\Runtime\Serialization\SchemaImporter.cs (19)
83ImportType((XmlSchemaType)typeObj); 174List<XmlSchemaType>? knownTypes = schemaObjectInfo._knownTypes; 177foreach (XmlSchemaType knownType in knownTypes) 222List<XmlSchemaType>? knownTypes = schemaObjectInfo._knownTypes; 226foreach (XmlSchemaType knownType in knownTypes) 245List<XmlSchemaType> knownTypesForObject = new List<XmlSchemaType>(); 254if (schemaObj is XmlSchemaType schemaType) 276baseTypeInfo._knownTypes ??= new List<XmlSchemaType>(); 280baseTypeInfo = new SchemaObjectInfo(null, null, null, new List<XmlSchemaType>()); 309private static XmlQualifiedName? GetBaseTypeName(XmlSchemaType type) 389XmlSchemaType? type = SchemaHelper.GetSchemaType(SchemaObjects, typeName); 401private DataContract ImportType(XmlSchemaType type) 409private DataContract ImportType(XmlSchemaType type, XmlQualifiedName typeName, bool isAnonymous) 696private DataContract ImportXmlDataType(XmlQualifiedName typeName, XmlSchemaType xsdType, bool isAnonymous) 729private XmlDataContract? ImportSpecialXmlDataType(XmlSchemaType xsdType, bool isAnonymous) 1240private void ImportDataContractExtension(XmlSchemaType type, DataContract dataContract) 1262private static void ImportGenericInfo(XmlSchemaType type, DataContract dataContract) 1283private static GenericInfo ImportGenericInfo(XmlElement typeElement, XmlSchemaType type)
System\Runtime\Serialization\XmlDataContract.cs (4)
43public XmlSchemaType? XsdType 132private XmlSchemaType? _xsdType; 145XmlSchemaType? xsdType; 208internal XmlSchemaType? XsdType
System\Runtime\Serialization\XsdDataContractExporter.cs (2)
205/// <returns>An <see cref="XmlSchemaType"/> that contains the XML schema.</returns> 208public XmlSchemaType? GetSchemaType(Type type)
System.Private.Xml (332)
System\Xml\Core\XmlAsyncCheckReader.cs (1)
1051XmlSchemaType? IXmlSchemaInfo.SchemaType
System\Xml\Core\XmlValidatingReaderImpl.cs (3)
847XmlSchemaType? schemaTypeObj = _coreReaderImpl.InternalSchemaType as XmlSchemaType; 962XmlSchemaDatatype? dtype = (SchemaType is XmlSchemaDatatype) ? (XmlSchemaDatatype)SchemaType : ((XmlSchemaType)SchemaType).Datatype;
System\Xml\Core\XsdValidatingReader.cs (26)
464XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 498XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 532XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 566XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 600XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 634XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 668XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 703XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 739XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 779XmlSchemaType? xmlType; 790XmlSchemaType? xmlType; 825XmlSchemaType? xmlType; 860XmlSchemaType? xmlType; 895XmlSchemaType? xmlType; 930XmlSchemaType? xmlType; 965XmlSchemaType? xmlType; 1000XmlSchemaType? xmlType; 1035XmlSchemaType? xmlType; 1070XmlSchemaType? xmlType; 1828XmlSchemaType? IXmlSchemaInfo.SchemaType 1965private XmlSchemaType? ElementXmlType 1973private XmlSchemaType? AttributeXmlType 2428private object? InternalReadElementContentAsObject(out XmlSchemaType? xmlType) 2433private object? InternalReadElementContentAsObject(out XmlSchemaType? xmlType, bool unwrapTypedValue) 2438private object? InternalReadElementContentAsObject(out XmlSchemaType? xmlType, bool unwrapTypedValue, out string? originalString) 2716private object ReturnBoxedValue(object? typedValue, XmlSchemaType xmlType, bool unWrap)
System\Xml\Core\XsdValidatingReaderAsync.cs (8)
49XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 89XmlSchemaType? xmlType = NodeType == XmlNodeType.Attribute ? AttributeXmlType : ElementXmlType; 141XmlSchemaType xmlType; 181XmlSchemaType xmlType; 759private Task<(XmlSchemaType, object)> InternalReadElementContentAsObjectAsync() 764private async Task<(XmlSchemaType, object)> InternalReadElementContentAsObjectAsync(bool unwrapTypedValue) 771private async Task<(XmlSchemaType, string, object)> InternalReadElementContentAsObjectTupleAsync(bool unwrapTypedValue) 773XmlSchemaType? xmlType;
System\Xml\Dom\XmlName.cs (3)
147public virtual XmlSchemaType? SchemaType 191private readonly XmlSchemaType? _schemaType; 246public override XmlSchemaType? SchemaType
System\Xml\Schema\BaseProcessor.cs (4)
196XmlSchemaType schemaType = (item as XmlSchemaType)!; 197XmlSchemaType existingType = (existingObject as XmlSchemaType)!;
System\Xml\Schema\DataTypeImplementation.cs (28)
103private XmlSchemaType? _parentSchemaType; 368internal override XmlSchemaDatatype DeriveByRestriction(XmlSchemaObjectCollection facets, XmlNameTable nameTable, XmlSchemaType schemaType) 378internal override XmlSchemaDatatype DeriveByList(XmlSchemaType? schemaType) 383internal XmlSchemaDatatype DeriveByList(int minSize, XmlSchemaType? schemaType) 402internal static new DatatypeImplementation DeriveByUnion(XmlSchemaSimpleType[] types, XmlSchemaType schemaType) 471internal abstract XmlValueConverter CreateValueConverter(XmlSchemaType schemaType); 624XmlSchemaType? simpleType = _parentSchemaType; 900internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 902XmlSchemaType? listItemType = null; 965XmlSchemaType xmlType1; 1157internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1177XmlSchemaType schemaType1 = simpleValue1.XmlType; 1178XmlSchemaType schemaType2 = simpleValue2.XmlType; 1350internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1384internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1395internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1430internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1498internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1575internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1661internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1751internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1840internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 1984internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 2379internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 2477internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 2574internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 2669internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType) 3002internal override XmlValueConverter CreateValueConverter(XmlSchemaType schemaType)
System\Xml\Schema\DtdParser.cs (2)
764attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.Datatype.TypeCode); 844attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.Datatype.TypeCode);
System\Xml\Schema\DtdParserAsync.cs (2)
408attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.Datatype.TypeCode); 488attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.Datatype.TypeCode);
System\Xml\Schema\Inference\Infer.cs (9)
638XmlSchemaType? schemaType = GetEffectiveSchemaType(xse, bCreatingNewType); 994private XmlSchemaType? GetEffectiveSchemaType(XmlSchemaElement elem, bool bCreatingNewType) 996XmlSchemaType? effectiveSchemaType = null; 1011_schemaSet!.GlobalTypes[elem.SchemaTypeName] as XmlSchemaType ?? 1012(XmlSchemaType?)XmlSchemaType.GetBuiltInSimpleType(elem.SchemaTypeName) ?? 1013(XmlSchemaType?)XmlSchemaType.GetBuiltInComplexType(elem.SchemaTypeName); 1197internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType? effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema)
System\Xml\Schema\IXmlSchemaInfo.cs (1)
19XmlSchemaType? SchemaType { get; }
System\Xml\Schema\Preprocessor.cs (5)
806foreach (XmlSchemaType? type in includedSchema.SchemaTypes.Values) 904XmlSchemaType? originalType = (XmlSchemaType?)schemaToUpdate.SchemaTypes[complexType.QualifiedName]; 933XmlSchemaType? originalType = (XmlSchemaType?)schemaToUpdate.SchemaTypes[simpleType.QualifiedName];
System\Xml\Schema\SchemaCollectionCompiler.cs (12)
72foreach (XmlSchemaType? type in _schema.SchemaTypes.Values) 214foreach (XmlSchemaType? type in _schema.SchemaTypes.Values) 255foreach (XmlSchemaType? type in _schema.SchemaTypes.Values) 293foreach (XmlSchemaType? type in _schema.SchemaTypes.Values) 494if (!XmlSchemaType.IsDerivedFrom(element!.ElementSchemaType, examplar.ElementSchemaType, examplar.FinalResolved)) 813XmlSchemaType? bto = GetAnySchemaType(simpleExtension.BaseTypeName); 869if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype!, baseType.Datatype!)) 1417XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction); 1901else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) 2656private XmlSchemaType? GetAnySchemaType(XmlQualifiedName name) 2658XmlSchemaType? type = (XmlSchemaType?)_schema!.SchemaTypes[name];
System\Xml\Schema\SchemaCollectionpreProcessor.cs (5)
521foreach (XmlSchemaType? type in includedSchema.SchemaTypes.Values) 646XmlSchemaType? type = (XmlSchemaType?)redefine.Schema!.SchemaTypes[complexType.QualifiedName]; 675XmlSchemaType? type = (XmlSchemaType?)redefine.Schema!.SchemaTypes[simpleType.QualifiedName];
System\Xml\Schema\SchemaDeclBase.cs (2)
26protected XmlSchemaType? schemaType; 86internal XmlSchemaType? SchemaType
System\Xml\Schema\SchemaSetCompiler.cs (14)
97foreach (XmlSchemaType? type in schema.SchemaTypes.Values) 160foreach (XmlSchemaType? type in _schemaTypes.Values) 208foreach (XmlSchemaType? type in _schemaTypes.Values) 253foreach (XmlSchemaType? type in _schemaTypes.Values) 371if (simpleType == XmlSchemaType.GetBuiltInSimpleType(simpleType.TypeCode)) 461if (!XmlSchemaType.IsDerivedFrom(element.ElementSchemaType, headElement.ElementSchemaType, headElement.FinalResolved)) 891XmlSchemaType? bto = GetAnySchemaType(simpleExtension.BaseTypeName); 949if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.Datatype!, baseType.Datatype!)) 1673XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union)))) 2266else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) 2326else if (attributeBase.AttributeSchemaType == null || attribute.AttributeSchemaType == null || !XmlSchemaType.IsDerivedFrom(attribute.AttributeSchemaType, attributeBase.AttributeSchemaType, XmlSchemaDerivationMethod.Empty)) 3046private XmlSchemaType? GetAnySchemaType(XmlQualifiedName name) 3048XmlSchemaType? type = (XmlSchemaType?)_schemaTypes[name];
System\Xml\Schema\XmlAtomicValue.cs (11)
19private readonly XmlSchemaType _xmlType; 81internal XmlAtomicValue(XmlSchemaType xmlType, bool value) 90internal XmlAtomicValue(XmlSchemaType xmlType, DateTime value) 99internal XmlAtomicValue(XmlSchemaType xmlType, double value) 108internal XmlAtomicValue(XmlSchemaType xmlType, int value) 117internal XmlAtomicValue(XmlSchemaType xmlType, long value) 126internal XmlAtomicValue(XmlSchemaType xmlType, string value) 135internal XmlAtomicValue(XmlSchemaType xmlType, string value, IXmlNamespaceResolver? nsResolver) 149internal XmlAtomicValue(XmlSchemaType xmlType, object value) 158internal XmlAtomicValue(XmlSchemaType xmlType, object value, IXmlNamespaceResolver? nsResolver) 206public override XmlSchemaType XmlType
System\Xml\Schema\XmlSchemaDataType.cs (3)
72internal abstract XmlSchemaDatatype DeriveByRestriction(XmlSchemaObjectCollection facets, XmlNameTable nameTable, XmlSchemaType schemaType); 74internal abstract XmlSchemaDatatype DeriveByList(XmlSchemaType? schemaType); 235internal static XmlSchemaDatatype DeriveByUnion(XmlSchemaSimpleType[] types, XmlSchemaType schemaType)
System\Xml\Schema\XmlSchemaElement.cs (6)
29private XmlSchemaType? _type; 32private XmlSchemaType? _elementType; 139public XmlSchemaType? SchemaType 175public XmlSchemaType? ElementSchemaType 211internal void SetElementType(XmlSchemaType? value) 292newElem._type = (XmlSchemaType)complexType.Clone(parentSchema);
System\Xml\Schema\XmlSchemaInfo.cs (3)
15private XmlSchemaType? _schemaType; 78public XmlSchemaType? SchemaType 142internal XmlSchemaType? XmlType
System\Xml\Schema\XmlSchemaSet.cs (5)
1147foreach (XmlSchemaType? schemaType in otherSet.GlobalTypes.Values) 1191foreach (XmlSchemaType? schemaTypeToRemove in otherSet.GlobalTypes.Values) 1371foreach (XmlSchemaType? schemaTypeToRemove in schema.SchemaTypes.Values) 1373XmlSchemaType? schemaType = (XmlSchemaType?)schemaTypes![schemaTypeToRemove!.QualifiedName];
System\Xml\Schema\XmlSchemaType.cs (7)
19private XmlSchemaType? _baseSchemaType; 24private XmlSchemaType? _redefined; 143public XmlSchemaType? BaseXmlSchemaType 239internal void SetBaseSchemaType(XmlSchemaType? value) 261internal XmlSchemaType? Redefined 277public static bool IsDerivedFrom([NotNullWhen(true)] XmlSchemaType? derivedType, [NotNullWhen(true)] XmlSchemaType? baseType, XmlSchemaDerivationMethod except)
System\Xml\Schema\XmlSchemaValidator.cs (13)
380if (!(partialValidationType is XmlSchemaElement || partialValidationType is XmlSchemaAttribute || partialValidationType is XmlSchemaType)) 445XmlSchemaType? localSchemaType = null; 1178XmlSchemaType? localSchemaType = null; 1239XmlSchemaType xmlType = memberType ?? contextElementDecl.SchemaType!; 1404if (!XmlSchemaType.IsDerivedFrom(memberElem.ElementSchemaType, headElem.ElementSchemaType, headElem.BlockResolved)) 1622else if (_partialValidationType is XmlSchemaType type) 1694XmlSchemaType? schemaType = DatatypeImplementation.GetSimpleTypeFromXsdType(xsiTypeName); 1695schemaType ??= XmlSchemaType.GetBuiltInComplexType(xsiTypeName); 1714else if (elementDecl != null && !XmlSchemaType.IsDerivedFrom(elementDeclXsi.SchemaType, elementDecl.SchemaType, elementDecl.Block)) 2479tempXsiTypeSO.SetAttributeType(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName)); 2487tempxsiNilSO.SetAttributeType(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean)); 2492XmlSchemaSimpleType stringType = XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String); 2501XmlSchemaSimpleType stringType = XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String);
System\Xml\Schema\XmlValueConverter.cs (46)
226private readonly XmlSchemaType? _schemaType; 231protected XmlBaseConverter(XmlSchemaType schemaType) 241schemaType ??= XmlSchemaType.GetBuiltInSimpleType(datatype.TypeCode); //Did not find any simple type in the parent chain 398protected XmlSchemaType? SchemaType 418XmlSchemaType? type = _schemaType; 885private XmlNumeric10Converter(XmlSchemaType schemaType) : base(schemaType) 889public static XmlValueConverter Create(XmlSchemaType schemaType) 1151private XmlNumeric2Converter(XmlSchemaType schemaType) : base(schemaType) 1155public static XmlValueConverter Create(XmlSchemaType schemaType) 1322private XmlDateTimeConverter(XmlSchemaType schemaType) : base(schemaType) 1326public static XmlValueConverter Create(XmlSchemaType schemaType) 1554private XmlBooleanConverter(XmlSchemaType schemaType) : base(schemaType) 1558public static XmlValueConverter Create(XmlSchemaType schemaType) 1709private XmlMiscConverter(XmlSchemaType schemaType) : base(schemaType) 1713public static XmlValueConverter Create(XmlSchemaType schemaType) 1938private XmlStringConverter(XmlSchemaType schemaType) : base(schemaType) 1942public static XmlValueConverter Create(XmlSchemaType schemaType) 2683if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value)); 2693if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value)); 2703if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value)); 2713if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value)); 2723if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value)); 2733if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value)); 2744if (destinationType == XmlAtomicValueType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value)); 2792if (sourceType == BooleanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), (bool)value)); 2793if (sourceType == ByteType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedByte), value)); 2794if (sourceType == ByteArrayType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Base64Binary), value)); 2795if (sourceType == DateTimeType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTime)value)); 2796if (sourceType == DateTimeOffsetType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.DateTime), (DateTimeOffset)value)); 2797if (sourceType == DecimalType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Decimal), value)); 2798if (sourceType == DoubleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), (double)value)); 2799if (sourceType == Int16Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Short), value)); 2800if (sourceType == Int32Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Int), (int)value)); 2801if (sourceType == Int64Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Long), (long)value)); 2802if (sourceType == SByteType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Byte), value)); 2803if (sourceType == SingleType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Float), value)); 2804if (sourceType == StringType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), (string)value)); 2805if (sourceType == TimeSpanType) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Duration), value)); 2806if (sourceType == UInt16Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedShort), value)); 2807if (sourceType == UInt32Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedInt), value)); 2808if (sourceType == UInt64Type) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.UnsignedLong), value)); 2809if (IsDerivedFrom(sourceType, UriType)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.AnyUri), value)); 2810if (IsDerivedFrom(sourceType, XmlQualifiedNameType)) return (new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName), value, nsResolver)); 2904protected XmlListConverter(XmlSchemaType schemaType) : base(schemaType) 3139private XmlUnionConverter(XmlSchemaType schemaType) : base(schemaType) 3162public static XmlValueConverter Create(XmlSchemaType schemaType)
System\Xml\Schema\XsdValidator.cs (1)
413else if (!XmlSchemaType.IsDerivedFrom(elementDeclXsi.SchemaType, elementDecl.SchemaType, elementDecl.Block))
System\Xml\Serialization\ImportContext.cs (16)
262if (typeof(XmlSchemaType).IsAssignableFrom(t)) 265XmlSchemaType? baseType = null; 338XmlSchemaType? type = (XmlSchemaType?)_schemas.Find(memberTypes[i], typeof(XmlSchemaType), false); 345baseType = (XmlSchemaType?)_schemas.Find(baseName, typeof(XmlSchemaType), false); 381XmlSchemaType? type = (XmlSchemaType?)_schemas.Find(el.SchemaTypeName, typeof(XmlSchemaType), false); 427XmlSchemaType? type = (XmlSchemaType?)_schemas.Find(at.SchemaTypeName, typeof(XmlSchemaType), false); 447XmlSchemaType? type = (XmlSchemaType?)_schemas.Find(qname, typeof(XmlSchemaType), false);
System\Xml\Serialization\Mappings.cs (7)
1046private XmlSchemaType? _xsdType; 1096if (_needSchema && typeof(XmlSchemaType).IsAssignableFrom(_getSchemaMethod.ReturnType)) 1188if (typeof(XmlSchemaType).IsAssignableFrom(_getSchemaMethod.ReturnType)) 1195internal XmlSchemaType? XsdType 1283if (typeof(XmlSchemaType).IsAssignableFrom(_getSchemaMethod.ReturnType)) 1285_xsdType = (XmlSchemaType)typeInfo; 1334_xsdType = (XmlSchemaType?)s.SchemaTypes[_xsiType];
System\Xml\Serialization\Types.cs (5)
89private readonly XmlSchemaType? _dataType; 99internal TypeDesc(string name, string fullName, XmlSchemaType? dataType, TypeKind kind, TypeDesc? baseTypeDesc, TypeFlags flags, string? formatterName) 120: this(name, fullName, (XmlSchemaType?)null, kind, baseTypeDesc, flags, null) 123internal TypeDesc(Type type, bool isXsdType, XmlSchemaType dataType, string formatterName, TypeFlags flags) 169internal XmlSchemaType? DataType
System\Xml\Serialization\XmlReflectionImporter.cs (5)
502if (!(typeof(XmlQualifiedName).IsAssignableFrom(getMethod.ReturnType)) && !(typeof(XmlSchemaType).IsAssignableFrom(getMethod.ReturnType))) 503throw new InvalidOperationException(SR.Format(SR.XmlGetSchemaMethodReturnType, type.Name, provider.MethodName, nameof(XmlSchemaProviderAttribute), typeof(XmlQualifiedName).FullName, typeof(XmlSchemaType).FullName)); 552XmlSchemaType? xsdType = serializableMapping.XsdType; 602XmlSchemaType t = (XmlSchemaType)s.SchemaTypes[baseQname]!;
System\Xml\Serialization\XmlSchemaExporter.cs (13)
48XmlSchemaType? type = ExportSpecialMapping(special, xmlMembersMapping.Accessor.Namespace, false, null); 101private static XmlSchemaType? FindSchemaType(string name, XmlSchemaObjectCollection items) 106XmlSchemaType? type = o as XmlSchemaType; 115private static bool IsAnyType(XmlSchemaType schemaType, bool mixed, bool unbounded) 143XmlSchemaType? schemaType = FindSchemaType(name, schema.Items); 188XmlSchemaType? schemaType = FindSchemaType(name, schema.Items); 259XmlSchemaType? type = o as XmlSchemaType; 412private XmlSchemaType? ExportSpecialMapping(SpecialMapping mapping, string? ns, bool isAny, XmlSchemaElement? element) 472XmlSchemaType? type = serializableMapping.XsdType; 481type = (XmlSchemaType?)schema.SchemaTypes[serializableMapping.XsiType]; 571XmlSchemaType type = ExportEnumMapping((EnumMapping)mapping, ns);
System\Xml\Serialization\XmlSchemaImporter.cs (17)
379object? type = Schemas.Find(qname, typeof(XmlSchemaType)); 402if (item is XmlSchemaType type) 479private MembersMapping ImportMembersType(XmlSchemaType type, string? typeNs, string identifier) 495private StructMapping ImportStructType(XmlSchemaType type, string? typeNs, string identifier, Type? baseType, bool arrayLike) 598private bool IsAllGroup(XmlSchemaType type) 638private MemberMapping[] ImportTypeMembers(XmlSchemaType type, string? typeNs, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, ref bool needExplicitOrder, bool order, bool allowUnboundedElements) 646XmlSchemaType t = type; 691internal static bool IsMixed(XmlSchemaType type) 710private TypeItems GetTypeItems(XmlSchemaType type) 1245XmlSchemaType type = element.SchemaType; 1260private ArrayMapping? ImportArrayMapping(XmlSchemaType type, string identifier, string? ns) 1346XmlSchemaType? refType = refElement.SchemaType; 1364private SpecialMapping? ImportAnyMapping(XmlSchemaType? type, bool repeats) 1508private static bool KeepXmlnsDeclarations(XmlSchemaType type, out string? xmlnsMemberName) 1544private void ImportXmlnsDeclarationsMember(XmlSchemaType type, CodeIdentifiers members, CodeIdentifiers membersScope) 1731XmlSchemaType sourceType = dataType; 1946private XmlSchemaType? FindType(XmlQualifiedName? name, TypeFlags flags)
System\Xml\Serialization\XmlSchemas.cs (6)
230if (typeof(XmlSchemaType).IsAssignableFrom(type)) 452else if (o is XmlSchemaType) 454return ((XmlSchemaType)o).Name; 471if (item.Parent is XmlSchemaType type) 528else if (o is XmlSchemaType) 530item = SR.Format(SR.XmlSchemaNamedItem, ns, o.GetType() == typeof(XmlSchemaSimpleType) ? "simpleType" : "complexType", ((XmlSchemaType)o).Name, null);
System\Xml\XPath\XPathItem.cs (1)
21public abstract XmlSchemaType? XmlType { get; }
System\Xml\XPath\XPathNavigator.cs (13)
44public override XmlSchemaType? XmlType 53XmlSchemaType? memberType = schemaInfo.MemberType; 75XmlSchemaType? schemaType; 124XmlSchemaType? schemaType = schemaInfo.SchemaType; 141XmlSchemaType? schemaType; 179XmlSchemaType? schemaType; 213XmlSchemaType? schemaType; 247XmlSchemaType? schemaType; 281XmlSchemaType? schemaType; 315XmlSchemaType? schemaType; 348XmlSchemaType? schemaType; 988XmlSchemaType? schemaType = null; 1053private static XmlReader GetValidatingReader(XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent, XmlSchemaType? schemaType, XmlSchemaElement? schemaElement, XmlSchemaAttribute? schemaAttribute)
System\Xml\XPath\XPathNavigatorReader.cs (1)
1134public XmlSchemaType? SchemaType { get { return IsReading ? this.schemaInfo!.SchemaType : null; } }
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (4)
636value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean), value)); 640value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), ((IConvertible)value).ToDouble(null))); 645value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), XsltConvert.ToString((DateTime)value))); 647value = new XmlQueryItemSequence(new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), value));
System\Xml\Xsl\Runtime\XsltFunctions.cs (5)
221case "version": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Double), 1.0); 222case "vendor": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "Microsoft"); 223case "vendor-url": return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), "http://www.microsoft.com"); 229return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), typeof(XsltLibrary).Assembly.ImageRuntimeVersion); 232return new XmlAtomicValue(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String), string.Empty);
System\Xml\Xsl\XmlQueryType.cs (8)
49public abstract XmlSchemaType SchemaType { get; } 340XmlSchemaType? schemaType; 490XmlSchemaType baseSchemaType = baseType.SchemaType; 499XmlSchemaType builtInType = XmlSchemaType.GetBuiltInSimpleType(baseType.TypeCode); 518(baseSchemaType == XmlSchemaComplexType.AnyType || XmlSchemaType.IsDerivedFrom(SchemaType, baseSchemaType, /* except:*/XmlSchemaDerivationMethod.Empty)) && 540if (!XmlSchemaType.IsDerivedFrom(this.SchemaType, other.SchemaType, /* except:*/XmlSchemaDerivationMethod.Empty) && 541!XmlSchemaType.IsDerivedFrom(other.SchemaType, this.SchemaType, /* except:*/XmlSchemaDerivationMethod.Empty))
System\Xml\Xsl\XmlQueryTypeFactory.cs (11)
337private readonly XmlSchemaType _schemaType; 404XmlSchemaType builtInType = XmlSchemaType.GetBuiltInSimpleType(typeCode); 441if (schemaType == XmlSchemaType.GetBuiltInSimpleType(code)) 454public static XmlQueryType Create(XmlTypeCode code, XmlQualifiedNameTest nameTest, XmlSchemaType contentType, bool isNillable) 502private ItemType(XmlTypeCode code, XmlQualifiedNameTest nameTest, XmlSchemaType schemaType, bool isNillable, bool isStrict, bool isNotRtf) 595public override XmlSchemaType SchemaType 693private readonly XmlSchemaType? _schemaType; 857public override XmlSchemaType SchemaType 1061public override XmlSchemaType SchemaType 1152public static XmlQueryType Type(XPathNodeType kind, XmlQualifiedNameTest nameTest, XmlSchemaType contentType, bool isNillable)
System.Private.Xml.Linq (5)
System\Xml\Schema\XNodeValidator.cs (5)
419XmlSchemaType? schemaType = si.SchemaType; 493/// <see cref="XmlSchemaType"/> object used to initialize the partial validation 509/// <see cref="XmlSchemaType"/> object used to initialize the partial validation 532/// <see cref="XmlSchemaType"/> object used to initialize the partial validation 548/// <see cref="XmlSchemaType"/> object used to initialize the partial validation
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\ImportGlobals.cs (1)
109internal static Type TypeOfXmlSchemaType => s_typeOfXmlSchemaType ??= typeof(XmlSchemaType);
System.Xml (1)
System.Xml.cs (1)
93[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaType))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net10.0\System.Xml.ReaderWriter.Forwards.cs (1)
92[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaType))]