42 references to ElementSchemaType
System.Data.Common (2)
System\Data\XMLSchema.cs (2)
1483bool isSimpleContent = ((node.ElementSchemaType!.BaseXmlSchemaType != null) || (ct != null && ct.ContentModel is XmlSchemaSimpleContent)); 2650if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))
System.Private.Xml (40)
System\Xml\Dom\DocumentSchemaValidator.cs (2)
115Debug.Assert(schemaElement.ElementSchemaType == schemaInfo.SchemaType); 660complexType = schemaElement.ElementSchemaType as XmlSchemaComplexType;
System\Xml\Schema\Inference\Infer.cs (2)
997if (!bCreatingNewType && elem.ElementSchemaType != null) 999effectiveSchemaType = elem.ElementSchemaType;
System\Xml\Schema\SchemaCollectionCompiler.cs (17)
265if (element!.ElementSchemaType is XmlSchemaComplexType && element.SchemaTypeName == XmlQualifiedName.Empty) 267CheckParticleDerivation((XmlSchemaComplexType)element.ElementSchemaType); 494if (!XmlSchemaType.IsDerivedFrom(element!.ElementSchemaType, examplar.ElementSchemaType, examplar.FinalResolved)) 1416(derivedElement.ElementSchemaType != null) && (baseElement.ElementSchemaType != null) && 1417XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction); 2204xe.SetElementType(e.ElementSchemaType); 2216if (xe.ElementSchemaType == null) 2240xe.SetElementType(examplar.ElementSchemaType); 2252Debug.Assert(xe.ElementSchemaType != null); 2253if (xe.ElementSchemaType is XmlSchemaComplexType complexType) 2262else if (xe.ElementSchemaType is XmlSchemaSimpleType simpleType) 2274XmlSchemaComplexType? ct = xe.ElementSchemaType as XmlSchemaComplexType; 2586if (element.ElementSchemaType != localElement.ElementSchemaType)
System\Xml\Schema\SchemaSetCompiler.cs (17)
264XmlSchemaComplexType? localComplexType = element!.ElementSchemaType as XmlSchemaComplexType; 461if (!XmlSchemaType.IsDerivedFrom(element.ElementSchemaType, headElement.ElementSchemaType, headElement.FinalResolved)) 1154XmlSchemaComplexType? localComplexType = localElement.ElementSchemaType as XmlSchemaComplexType; 1672(derivedElement.ElementSchemaType != null) && (baseElement.ElementSchemaType != null) && 1673XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~(XmlSchemaDerivationMethod.Restriction | XmlSchemaDerivationMethod.List | XmlSchemaDerivationMethod.Union)))) 2663xe.SetElementType(e.ElementSchemaType); 2675if (xe.ElementSchemaType == null) 2699xe.SetElementType(examplar.ElementSchemaType); 2711Debug.Assert(xe.ElementSchemaType != null); 2712if (xe.ElementSchemaType is XmlSchemaComplexType complexType) 2721else if (xe.ElementSchemaType is XmlSchemaSimpleType simpleType) 2733XmlSchemaComplexType? ct = xe.ElementSchemaType as XmlSchemaComplexType; 2968if (element.ElementSchemaType != localElement.ElementSchemaType)
System\Xml\Schema\XmlSchemaValidator.cs (2)
1404if (!XmlSchemaType.IsDerivedFrom(memberElem.ElementSchemaType, headElem.ElementSchemaType, headElem.BlockResolved))