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