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