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