120 references to Datatype
System.Data.SqlXml (4)
System\Xml\Xsl\XmlQueryTypeFactory.cs (4)
45
if (schemaType.
Datatype
.Variety == XmlSchemaDatatypeVariety.Atomic) {
423
Debug.Assert(schemaType.
Datatype
.Variety == XmlSchemaDatatypeVariety.Atomic, "List or Union Xsd types should have been handled by caller.");
424
XmlTypeCode code = schemaType.
Datatype
.TypeCode;
493
Debug.Assert(!IsAtomicValue || schemaType.
Datatype
.Variety == XmlSchemaDatatypeVariety.Atomic);
System.Xml (114)
System\Xml\Core\XmlValidatingReaderImpl.cs (2)
716
return schemaTypeObj.
Datatype
;
804
XmlSchemaDatatype dtype = ( SchemaType is XmlSchemaDatatype ) ? (XmlSchemaDatatype)SchemaType : ((XmlSchemaType)SchemaType).
Datatype
;
System\Xml\Core\XmlValidatingReaderImplAsync.cs (1)
172
XmlSchemaDatatype dtype = ( SchemaType is XmlSchemaDatatype ) ? (XmlSchemaDatatype)SchemaType : ((XmlSchemaType)SchemaType).
Datatype
;
System\Xml\Core\XsdValidatingReader.cs (8)
357
return xmlSchemaInfo.SchemaType.
Datatype
.ValueType;
363
return AttributeSchemaInfo.SchemaType.
Datatype
.ValueType;
595
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase) {
854
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase) {
2134
Debug.Assert(xmlType != null && xmlType.
Datatype
!= null);
2135
if (xmlType.
Datatype
.Variety == XmlSchemaDatatypeVariety.List) {
2136
Datatype_List listType = xmlType.
Datatype
as Datatype_List;
2138
typedValue = xmlType.ValueConverter.ChangeType(typedValue, xmlType.
Datatype
.ValueType, thisNSResolver);
System\Xml\Core\XsdValidatingReaderAsync.cs (2)
77
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase) {
155
if (returnType == typeof(DateTimeOffset) && xmlType.
Datatype
is Datatype_dateTimeBase) {
System\Xml\Schema\DataTypeImplementation.cs (11)
183
if (derivedType.
Datatype
.Variety == XmlSchemaDatatypeVariety.Atomic) { //Content is restriction
190
if (derivedType.
Datatype
.Variety == XmlSchemaDatatypeVariety.List) {
193
switch (derivedType.
Datatype
.TypeCode) {
394
return (datatype == anySimpleType.
Datatype
);
860
listItemType = DatatypeImplementation.GetSimpleTypeFromTypeCode(schemaType.
Datatype
.TypeCode);
889
if (xmlType1 != atomicValues2[i].XmlType || !xmlType1.
Datatype
.IsEqual(atomicValues1[i].TypedValue, atomicValues2[i].TypedValue) ) {
1067
XmlSchemaDatatype datatype = schemaType1.
Datatype
;
1096
if (types[i].
Datatype
.Variety == XmlSchemaDatatypeVariety.List) {
1105
if (derivedType.IsDerivedFrom(types[i].
Datatype
)) {
1123
exception = types[i].
Datatype
.TryParseValue(s, nameTable, nsmgr, out typedValue);
1158
if (types[i].
Datatype
.TryParseValue(value, nameTable, nsmgr, out valueToCheck) == null) { //no error
System\Xml\Schema\FacetChecker.cs (3)
51
nonNegativeInt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.NonNegativeInteger).
Datatype
;
53
builtInType = (int)builtInEnum > 0 ? DatatypeImplementation.GetSimpleTypeFromTypeCode(builtInEnum).
Datatype
: datatype;
257
XmlSchemaDatatype positiveInt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.PositiveInteger).
Datatype
;
System\Xml\Schema\Inference\Infer.cs (1)
1253
if (effectiveSchemaType != null && effectiveSchemaType.
Datatype
!= null && !xse.SchemaTypeName.IsEmpty)
System\Xml\Schema\Preprocessor.cs (1)
478
XmlSchemaDatatype tokenDt = DatatypeImplementation.GetSimpleTypeFromTypeCode(XmlTypeCode.Token).
Datatype
;
System\Xml\Schema\SchemaCollectionCompiler.cs (24)
424
datatype = list.ItemType.
Datatype
;
433
datatype = type.
Datatype
;
448
datatype = restriction.BaseType.
Datatype
;
453
datatype = simpleType.Redefined.
Datatype
;
465
datatype = type.
Datatype
;
486
simpleType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
492
decl.Datatype = simpleType.
Datatype
;
509
if (unionMember.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) { //union of union
532
if (st.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) { //union of union
546
XmlSchemaDatatype unionDatatype = unionMember.
Datatype
;
551
Datatype_union uniondt = unionMember.
Datatype
as Datatype_union;
611
decl.Datatype = complexType.
Datatype
;
639
complexType.SetDatatype(baseType.
Datatype
);
648
complexType.SetDatatype(bto.
Datatype
);
670
datatype = baseType.
Datatype
;
680
datatype = baseType.
Datatype
;
686
if(!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.
Datatype
, baseType.
Datatype
, XmlSchemaDerivationMethod.None)) {
689
datatype = simpleRestriction.BaseType.
Datatype
;
696
datatype = simpleRestriction.BaseType.
Datatype
;
723
complexType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
1679
decl.Datatype = xa.SchemaType.
Datatype
;
1685
decl.Datatype = simpleType.
Datatype
;
1694
decl.Datatype = DatatypeImplementation.AnySimpleType.
Datatype
;
System\Xml\Schema\SchemaElementDecl.cs (1)
59
anyTypeElementDecl.Datatype = DatatypeImplementation.AnySimpleType.
Datatype
;
System\Xml\Schema\SchemaSetCompiler.cs (27)
488
datatype = list.ItemType.
Datatype
;
497
datatype = type.
Datatype
;
512
datatype = restriction.BaseType.
Datatype
;
517
datatype = simpleType.Redefined.
Datatype
;
532
datatype = type.
Datatype
;
553
simpleType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
559
decl.Datatype = simpleType.
Datatype
;
576
if (unionMember.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) { //union of union
599
if (st.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) { //union of union
613
XmlSchemaDatatype unionDatatype = unionMember.
Datatype
;
618
Datatype_union uniondt = unionMember.
Datatype
as Datatype_union;
668
decl.Datatype = complexType.
Datatype
;
697
complexType.SetDatatype(baseType.
Datatype
);
706
complexType.SetDatatype(bto.
Datatype
);
728
datatype = baseType.
Datatype
;
738
datatype = baseType.
Datatype
;
744
if(!XmlSchemaType.IsDerivedFromDatatype(simpleRestriction.BaseType.
Datatype
, baseType.
Datatype
, XmlSchemaDerivationMethod.None)) {
747
datatype = simpleRestriction.BaseType.
Datatype
;
754
datatype = simpleRestriction.BaseType.
Datatype
;
781
complexType.SetDatatype(DatatypeImplementation.AnySimpleType.
Datatype
);
829
complexType.SetDatatype(baseType.
Datatype
);
2009
decl.Datatype = xa.SchemaType.
Datatype
;
2015
decl.Datatype = simpleType.
Datatype
;
2024
decl.Datatype = DatatypeImplementation.AnySimpleType.
Datatype
;
2246
decl.DefaultValueTyped = DatatypeImplementation.AnySimpleType.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe));
2589
XmlSchemaDatatype memberType = simpleFixedValue.XmlType.
Datatype
;
System\Xml\Schema\XmlAtomicValue.cs (1)
176
get { return this.xmlType.
Datatype
.ValueType; }
System\Xml\Schema\XmlSchemaAttribute.cs (2)
138
return attributeType.
Datatype
;
168
return attributeType.
Datatype
;
System\Xml\Schema\XmlSchemaDocumentation.cs (1)
41
set { language = (string)languageType.
Datatype
.ParseValue(value, (XmlNameTable) null, (IXmlNamespaceResolver) null); }
System\Xml\Schema\XmlSchemaElement.cs (1)
218
return elementType.
Datatype
; //returns XmlSchemaDatatype;
System\Xml\Schema\XmlSchemaInfo.cs (2)
133
if (schemaType == null || schemaType.
Datatype
== null) {
136
return schemaType.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union;
System\Xml\Schema\XmlSchemaType.cs (4)
130
return baseSchemaType.
Datatype
;
271
if ((except & derivedType.DerivedBy) != 0 || !dt.
Datatype
.IsDerivedFrom(bt.
Datatype
)) {
293
if (DatatypeImplementation.AnySimpleType.
Datatype
== baseDataType) {
System\Xml\Schema\XmlSchemaValidator.cs (5)
589
datatype = simpleValue.XmlType.
Datatype
;
924
datatype = simpleValue.XmlType.
Datatype
;
1064
EndElementIdentityConstraints(typedValue, stringValue, xmlType.
Datatype
);
1238
dtype = memberType.
Datatype
;
1269
dtype = memberType.
Datatype
;
System\Xml\Schema\XmlValueConverter.cs (6)
281
XmlSchemaDatatype datatype = schemaType.
Datatype
;
290
Debug.Assert(schemaType.
Datatype
.Variety != XmlSchemaDatatypeVariety.List, "schemaType must be list's item type, not list itself");
294
this.clrTypeDefault = schemaType.
Datatype
.ValueType;
3325
if (memberTypes[i].
Datatype
.Variety == XmlSchemaDatatypeVariety.List)
3327
else if (memberTypes[i].
Datatype
.Variety == XmlSchemaDatatypeVariety.Atomic)
3359
XsdSimpleValue simpleValue = (XsdSimpleValue) SchemaType.
Datatype
.ParseValue((string) value, new NameTable(), nsResolver, true);
System\Xml\XPath\XPathNavigator.cs (11)
81
datatype = schemaType.
Datatype
;
90
datatype = schemaType.
Datatype
;
118
XmlSchemaDatatype datatype = schemaType.
Datatype
;
142
datatype = schemaType.
Datatype
;
151
datatype = schemaType.
Datatype
;
180
datatype = schemaType.
Datatype
;
209
datatype = schemaType.
Datatype
;
238
datatype = schemaType.
Datatype
;
267
datatype = schemaType.
Datatype
;
296
datatype = schemaType.
Datatype
;
327
datatype = schemaType.
Datatype
;
System.Xml.Linq (2)
System\Xml\Linq\XNodeValidator.cs (2)
85
if (st.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) {
90
typedValue = mt.
Datatype
.ParseValue(value, schemas.NameTable, namespaceManager);