16 writes to Datatype
System.Private.Xml (16)
System\Xml\Schema\SchemaAttDef.cs (1)
159
this.
Datatype
= XmlSchemaDatatype.FromXmlTokenizedType(value)!;
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
624
decl.
Datatype
= simpleType.Datatype!;
774
decl.
Datatype
= complexType.Datatype!;
2042
decl.
Datatype
= xa.SchemaType.Datatype!;
2050
decl.
Datatype
= simpleType.Datatype!;
2061
decl.
Datatype
= DatatypeImplementation.AnySimpleType.Datatype!;
System\Xml\Schema\SchemaElementDecl.cs (2)
40
Datatype
= dtype;
55
anyTypeElementDecl.
Datatype
= DatatypeImplementation.AnySimpleType.Datatype!;
System\Xml\Schema\SchemaSetCompiler.cs (5)
714
decl.
Datatype
= simpleType.Datatype!;
850
decl.
Datatype
= complexType.Datatype!;
2475
decl.
Datatype
= xa.SchemaType.Datatype!;
2483
decl.
Datatype
= simpleType.Datatype!;
2494
decl.
Datatype
= DatatypeImplementation.AnySimpleType.Datatype!;
System\Xml\Schema\XdrBuilder.cs (3)
776
builder._ElementDef._ElementDecl!.
Datatype
= dtype!;
1075
builder._AttributeDef._AttDef!.
Datatype
= builder.CheckDatatype(qname.Name)!;
1130
builder._AttributeDef._AttDef!.
Datatype
= XmlSchemaDatatype.FromXmlTokenizedType(XmlTokenizedType.CDATA)!;
73 references to Datatype
System.Private.Xml (73)
System\Xml\Core\XmlTextReaderImpl.cs (1)
9268
attr.schemaType = (attrDef.SchemaType == null) ? (object)attrDef.
Datatype
: (object)attrDef.SchemaType;
System\Xml\Dom\DocumentSchemaValidator.cs (1)
444
if (attributeDef.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union)
System\Xml\Dom\XmlLoader.cs (1)
665
if (attdef.
Datatype
.TokenizedType == XmlTokenizedType.ID)
System\Xml\Schema\DtdParser.cs (5)
685
if (attrDef.
Datatype
.TokenizedType != XmlTokenizedType.ENUMERATION)
764
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.
Datatype
.TypeCode);
774
if ((idAttrDef == null || idAttrDef.
Datatype
.TokenizedType != XmlTokenizedType.ID) && !ignoreErrors)
844
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.
Datatype
.TypeCode);
904
if (_validate && attrDef.
Datatype
.TokenizedType == XmlTokenizedType.ID && !ignoreErrors)
System\Xml\Schema\DtdParserAsync.cs (5)
329
if (attrDef.
Datatype
.TokenizedType != XmlTokenizedType.ENUMERATION)
408
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.
Datatype
.TypeCode);
418
if ((idAttrDef == null || idAttrDef.
Datatype
.TokenizedType != XmlTokenizedType.ID) && !ignoreErrors)
488
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType(attrDef.
Datatype
.TypeCode);
548
if (_validate && attrDef.
Datatype
.TokenizedType == XmlTokenizedType.ID && !ignoreErrors)
System\Xml\Schema\DtdValidator.cs (6)
194
if (attnDef.
Datatype
!= null && !reader.IsDefault)
230
if (context.ElementDecl.
Datatype
!= null)
346
XmlSchemaDatatype? dtype = isAttn ? attdef!.
Datatype
: context!.ElementDecl!.
Datatype
;
534
XmlSchemaDatatype dtype = attdef.
Datatype
;
570
XmlSchemaDatatype dtype = attdef.
Datatype
;
System\Xml\Schema\SchemaAttDef.cs (1)
155
return
Datatype
.TokenizedType;
System\Xml\Schema\SchemaCollectionCompiler.cs (9)
2000
if (decl.
Datatype
!= null)
2019
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
2028
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
2065
decl.
Datatype
?.VerifySchemaValid(_schema!.Notations, xa);
2078
if (decl.
Datatype
!= null)
2080
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
2282
decl.
Datatype
?.VerifySchemaValid(_schema!.Notations, xe);
2300
if (decl.
Datatype
!= null)
2302
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe), true);
System\Xml\Schema\SchemaInfo.cs (1)
199
if (attdef.
Datatype
.TypeCode == XmlTypeCode.Id)
System\Xml\Schema\SchemaSetCompiler.cs (11)
2441
XmlSchemaDatatype datatype = decl.
Datatype
;
2498
decl.
Datatype
?.VerifySchemaValid(_notations, xa);
2543
if (decl.
Datatype
!= null)
2545
if (decl.
Datatype
.TypeCode == XmlTypeCode.Id)
2551
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
2741
decl.
Datatype
?.VerifySchemaValid(_notations, xe);
2759
if (decl.
Datatype
!= null)
2761
if (decl.
Datatype
.TypeCode == XmlTypeCode.Id)
2767
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe), true);
3094
XmlSchemaDatatype baseDatatype = baseDecl.
Datatype
;
3095
XmlSchemaDatatype derivedDatatype = derivedDecl.
Datatype
;
System\Xml\Schema\XdrBuilder.cs (6)
974
if (ed!.
Datatype
!= null)
976
XmlTokenizedType ttype = ed.
Datatype
.TokenizedType;
1105
if (builder._AttributeDef._HasDataType && builder._AttributeDef._AttDef!.
Datatype
!= null)
1107
XmlTokenizedType ttype = builder._AttributeDef._AttDef.
Datatype
.TokenizedType;
1463
if (builder._AttributeDef._AttDef!.
Datatype
!= null)
1465
XmlTokenizedType ttype = builder._AttributeDef._AttDef.
Datatype
.TokenizedType;
System\Xml\Schema\XdrValidator.cs (7)
248
reader.SchemaTypeObject = context.ElementDecl.
Datatype
;
280
reader.SchemaTypeObject = (attnDef.SchemaType != null) ? (object)attnDef.SchemaType : (object)attnDef.
Datatype
;
281
if (attnDef.
Datatype
!= null)
323
if (context.ElementDecl.
Datatype
!= null)
464
XmlSchemaDatatype? dtype = isAttn ? attdef!.
Datatype
: context!.ElementDecl!.
Datatype
;
568
XmlSchemaDatatype dtype = attdef.
Datatype
;
System\Xml\Schema\XmlSchemaValidator.cs (11)
632
XmlSchemaDatatype datatype = attributeDef.
Datatype
;
1047
XmlSchemaDatatype datatype = attdef.
Datatype
;
1060
if (attdef.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union)
1429
Debug.Assert(currentElementDecl.
Datatype
!= null);
1430
Exception? exception = currentElementDecl.
Datatype
.TryParseValue(currentElementDecl.DefaultValueRaw, _nameTable, _nsResolver, out typedVal);
1452
XmlSchemaDatatype dtype = currentElementDecl.
Datatype
;
1473
XmlSchemaDatatype dtype = currentElementDecl.
Datatype
!;
1509
typeName = decl.
Datatype
.TypeCodeString;
1933
XmlSchemaDatatype dtype = attdef.
Datatype
;
1972
XmlSchemaDatatype dtype = decl.
Datatype
;
2259
if (currentElementDecl.
Datatype
== null || currentElementDecl.ContentValidator!.ContentType == XmlSchemaContentType.Mixed)
System\Xml\Schema\XsdValidator.cs (8)
496
if (attnDef.
Datatype
!= null)
561
if (context.ElementDecl.
Datatype
!= null)
695
XmlSchemaDatatype? dtype = isAttn ? attdef!.
Datatype
: context!.ElementDecl!.
Datatype
;
944
if (context.ElementDecl.
Datatype
== null)
996
else if ((attdef != null) && (attdef.
Datatype
!= null))
998
laxis.Ks[laxis.Column] = new TypedObject(obj, sobj, attdef.
Datatype
);
1056
laxis.Ks[laxis.Column] = new TypedObject(reader.TypedValueObject, stringValue, context!.ElementDecl!.
Datatype
);