124 references to Datatype
System.Private.Xml (120)
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
850
return schemaTypeObj.
Datatype
;
962
XmlSchemaDatatype? dtype = (SchemaType is XmlSchemaDatatype) ? (XmlSchemaDatatype)SchemaType : ((XmlSchemaType)SchemaType).
Datatype
;
System\Xml\Core\XsdValidatingReader.cs (10)
425
Debug.Assert(_xmlSchemaInfo.SchemaType!.
Datatype
!= null);
426
return _xmlSchemaInfo.SchemaType.
Datatype
.ValueType;
434
Debug.Assert(AttributeSchemaInfo.SchemaType!.
Datatype
!= null);
435
return AttributeSchemaInfo.SchemaType.
Datatype
.ValueType;
746
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase)
1080
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase)
2723
Debug.Assert(xmlType != null && xmlType.
Datatype
!= null);
2724
if (xmlType.
Datatype
.Variety == XmlSchemaDatatypeVariety.List)
2726
Datatype_List? listType = xmlType.
Datatype
as Datatype_List;
2730
typedValue = xmlType.ValueConverter.ChangeType(typedValue, xmlType.
Datatype
.ValueType, _thisNSResolver);
System\Xml\Core\XsdValidatingReaderAsync.cs (2)
96
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase)
196
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase)
System\Xml\Schema\DataTypeImplementation.cs (11)
193
if (derivedType.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Atomic)
201
if (derivedType.
Datatype
.Variety == XmlSchemaDatatypeVariety.List)
205
switch (derivedType.
Datatype
.TypeCode)
441
return (datatype == s__anySimpleType.
Datatype
);
938
listItemType ??= DatatypeImplementation.GetSimpleTypeFromTypeCode(schemaType!.
Datatype
!.TypeCode);
969
if (xmlType1 != atomicValues2[i].XmlType || !xmlType1.
Datatype
!.IsEqual(atomicValues1[i].TypedValue, atomicValues2[i].TypedValue))
1182
XmlSchemaDatatype datatype = schemaType1.
Datatype
!;
1218
if (_types[i].
Datatype
!.Variety == XmlSchemaDatatypeVariety.List)
1230
if (derivedType.IsDerivedFrom(_types[i].
Datatype
!))
1251
exception = _types[i].
Datatype
!.TryParseValue(s, nameTable, nsmgr, out typedValue);
1293
if (_types[i].
Datatype
!.TryParseValue(value, nameTable, nsmgr, out valueToCheck) == null)
System\Xml\Schema\FacetChecker.cs (3)
48
_nonNegativeInt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.NonNegativeInteger).
Datatype
!;
50
_builtInType = (int)_builtInEnum > 0 ? DatatypeImplementation.GetSimpleTypeFromTypeCode(_builtInEnum).
Datatype
! : _datatype;
303
XmlSchemaDatatype positiveInt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.PositiveInteger).
Datatype
!;
System\Xml\Schema\Inference\Infer.cs (1)
1239
if (effectiveSchemaType != null && effectiveSchemaType.
Datatype
!= null && !xse.SchemaTypeName.IsEmpty)
System\Xml\Schema\Preprocessor.cs (1)
541
XmlSchemaDatatype tokenDt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.Token).
Datatype
!;
System\Xml\Schema\SchemaCollectionCompiler.cs (24)
540
datatype = list.ItemType!.
Datatype
!;
552
datatype = type.
Datatype
!;
569
datatype = restriction.BaseType!.
Datatype
!;
575
datatype = simpleType.Redefined.
Datatype
!;
591
datatype = type.
Datatype
!;
617
simpleType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
624
decl.Datatype = simpleType.
Datatype
!;
645
if (unionMember.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Union)
674
if (st.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Union)
692
XmlSchemaDatatype unionDatatype = unionMember.
Datatype
!;
699
Datatype_union uniondt = (unionMember.
Datatype
as Datatype_union)!;
774
decl.Datatype = complexType.
Datatype
!;
809
complexType.SetDatatype(baseType.
Datatype
);
821
complexType.SetDatatype(bto.
Datatype
);
848
datatype = baseType.
Datatype
;
862
datatype = baseType.
Datatype
;
869
if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.
Datatype
!, baseType.
Datatype
!))
873
datatype = simpleRestriction.BaseType.
Datatype
;
882
datatype = simpleRestriction.BaseType.
Datatype
;
918
complexType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
2042
decl.Datatype = xa.SchemaType.
Datatype
!;
2050
decl.Datatype = simpleType.
Datatype
!;
2061
decl.Datatype = DatatypeImplementation.AnySimpleType.
Datatype
!;
System\Xml\Schema\SchemaElementDecl.cs (1)
55
anyTypeElementDecl.Datatype = DatatypeImplementation.AnySimpleType.
Datatype
!;
System\Xml\Schema\SchemaSetCompiler.cs (27)
624
datatype = list.ItemType!.
Datatype
!;
637
datatype = type.
Datatype
!;
655
datatype = restriction.BaseType!.
Datatype
!;
661
datatype = simpleType.Redefined.
Datatype
!;
681
datatype = type.
Datatype
!;
707
simpleType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
714
decl.Datatype = simpleType.
Datatype
!;
735
if (unionMember.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Union)
764
if (st.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Union)
781
XmlSchemaDatatype unionDatatype = unionMember.
Datatype
!;
788
Datatype_union uniondt = (unionMember.
Datatype
as Datatype_union)!;
850
decl.Datatype = complexType.
Datatype
!;
887
complexType.SetDatatype(baseType.
Datatype
);
899
complexType.SetDatatype(bto.
Datatype
);
928
datatype = baseType.
Datatype
;
942
datatype = baseType.
Datatype
;
949
if (!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.
Datatype
!, baseType.
Datatype
!))
953
datatype = simpleRestriction.BaseType.
Datatype
;
962
datatype = simpleRestriction.BaseType.
Datatype
;
1001
complexType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
1063
complexType.SetDatatype(baseType.
Datatype
);
2475
decl.Datatype = xa.SchemaType.
Datatype
!;
2483
decl.Datatype = simpleType.
Datatype
!;
2494
decl.Datatype = DatatypeImplementation.AnySimpleType.
Datatype
!;
2772
decl.DefaultValueTyped = DatatypeImplementation.AnySimpleType.
Datatype
!.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe));
3110
XmlSchemaDatatype memberType = simpleFixedValue.XmlType.
Datatype
!;
System\Xml\Schema\XmlAtomicValue.cs (1)
213
get { return _xmlType.
Datatype
!.ValueType; }
System\Xml\Schema\XmlSchemaAttribute.cs (2)
104
return _attributeType.
Datatype
;
137
return _attributeType.
Datatype
;
System\Xml\Schema\XmlSchemaDocumentation.cs (1)
30
set { _language = (string)s_languageType.
Datatype
!.ParseValue(value, (XmlNameTable?)null, (IXmlNamespaceResolver?)null); }
System\Xml\Schema\XmlSchemaElement.cs (1)
168
return _elementType.
Datatype
; //returns XmlSchemaDatatype;
System\Xml\Schema\XmlSchemaInfo.cs (2)
166
if (_schemaType == null || _schemaType.
Datatype
== null)
170
return _schemaType.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union;
System\Xml\Schema\XmlSchemaType.cs (4)
132
return _baseSchemaType.
Datatype
;
305
if ((except & derivedType.DerivedBy) != 0 || !dt.
Datatype
!.IsDerivedFrom(bt.
Datatype
!))
332
if (DatatypeImplementation.AnySimpleType.
Datatype
== baseDataType)
System\Xml\Schema\XmlSchemaValidator.cs (5)
639
datatype = simpleValue.XmlType.
Datatype
!;
1064
datatype = simpleValue.XmlType.
Datatype
!;
1240
EndElementIdentityConstraints(typedValue!, stringValue, xmlType.
Datatype
!);
1457
dtype = memberType.
Datatype
!;
1494
dtype = memberType.
Datatype
!;
System\Xml\Schema\XmlValueConverter.cs (7)
234
XmlSchemaDatatype? datatype = schemaType.
Datatype
;
242
Debug.Assert(schemaType.
Datatype
!.Variety != XmlSchemaDatatypeVariety.List, "schemaType must be list's item type, not list itself");
246
_clrTypeDefault = schemaType.
Datatype
.ValueType;
247
_clrListTypeDefault = schemaType.
Datatype
.ListValueType;
3155
if (memberTypes[i].
Datatype
!.Variety == XmlSchemaDatatypeVariety.List)
3157
else if (memberTypes[i].
Datatype
!.Variety == XmlSchemaDatatypeVariety.Atomic)
3192
XsdSimpleValue simpleValue = (XsdSimpleValue)SchemaType!.
Datatype
!.ParseValue((string)value, new NameTable(), nsResolver, true);
System\Xml\XPath\XPathNavigator.cs (11)
84
datatype = schemaType.
Datatype
;
96
datatype = schemaType.
Datatype
;
128
XmlSchemaDatatype? datatype = schemaType.
Datatype
;
150
datatype = schemaType.
Datatype
;
162
datatype = schemaType.
Datatype
;
196
datatype = schemaType.
Datatype
;
230
datatype = schemaType.
Datatype
;
264
datatype = schemaType.
Datatype
;
298
datatype = schemaType.
Datatype
;
332
datatype = schemaType.
Datatype
;
365
datatype = schemaType.
Datatype
;
System\Xml\Xsl\XmlQueryTypeFactory.cs (4)
44
if (schemaType.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Atomic)
437
Debug.Assert(schemaType.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Atomic, "List or Union Xsd types should have been handled by caller.");
438
XmlTypeCode code = schemaType.
Datatype
.TypeCode;
513
Debug.Assert(!IsAtomicValue || schemaType.
Datatype
!.Variety == XmlSchemaDatatypeVariety.Atomic);
System.Private.Xml.Linq (4)
System\Xml\Schema\XNodeValidator.cs (4)
98
Debug.Assert(st.
Datatype
!= null);
99
if (st.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union)
108
Debug.Assert(mt.
Datatype
!= null);
110
typedValue = mt.
Datatype
.ParseValue(value, schemas.NameTable, namespaceManager);