19 writes to SchemaType
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\SchemaExporter.cs (2)
188element.SchemaType = xmlDataContract.XsdType; 396element.SchemaType = keyValueType;
System\Runtime\Serialization\SchemaImporter.cs (1)
143element.SchemaType = new XmlSchemaComplexType();
System.Private.Xml (16)
System\Xml\Schema\Inference\Infer.cs (3)
904xse.SchemaType = ct; 1232xse.SchemaType = ct; 2403newElement.SchemaType = copyElement.SchemaType;
System\Xml\Schema\XmlSchemaValidator.cs (1)
2119xsiElement.SchemaType = currentDecl.SchemaType;
System\Xml\Schema\XsdBuilder.cs (2)
1439builder._element.SchemaType = builder._simpleType; 1602builder._element.SchemaType = builder._complexType;
System\Xml\Serialization\XmlSchemaExporter.cs (9)
375element.SchemaType = ExportAnonymousPrimitiveMapping(pm); 387element.SchemaType = ExportMembersMapping((MembersMapping)mapping, ns); 430element?.SchemaType = type; 465element?.SchemaType = type; 486element.SchemaType = type; 511element?.SchemaType = type; 528element?.SchemaType = type; 635element.SchemaType = type; 1021element?.SchemaType = type;
System\Xml\Serialization\XmlSchemas.cs (1)
739element.SchemaType = type;
58 references to SchemaType
System.Data.Common (9)
System\Data\XMLSchema.cs (9)
541if (isChoice && pt.MaxOccurs > decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 546if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 593XmlSchemaComplexType? ct = node.SchemaType as XmlSchemaComplexType; 906if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.One && (el.SchemaType is XmlSchemaComplexType)) 1476XmlSchemaComplexType? ct = node.SchemaType as XmlSchemaComplexType; 1941typeNode = isAttr ? attr!.SchemaType : el!.SchemaType; 2646if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) 2674if (((XmlSchemaParticle)el).MaxOccurs > decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2676if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)))
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\SchemaImporter.cs (7)
86if (element.SchemaType != null) 375if (element.SchemaType == null) 378return ImportType(element.SchemaType, typeQName, true/*isAnonymous*/); 930if (topLevelElement.SchemaType != null) 972if (element.SchemaType != null) 1077if (element.SchemaType != null) 1117if (element.SchemaType != null)
System.Private.Xml (42)
System\Xml\Schema\Inference\Infer.cs (4)
655ct = xse.SchemaType as XmlSchemaComplexType; 1004if (elem.SchemaType != null) 1006effectiveSchemaType = elem.SchemaType; 2403newElement.SchemaType = copyElement.SchemaType;
System\Xml\Schema\Preprocessor.cs (6)
1336element.SchemaType != null || 1401if (element.SchemaType != null) 1403SetParent(element.SchemaType, element); //Set parent for simple / complex type child of element 1408if (element.SchemaType is XmlSchemaComplexType) 1410PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, true); 1414PreprocessSimpleType((XmlSchemaSimpleType)element.SchemaType, true);
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
380if (element.SchemaType != null) 382XmlSchemaComplexType? complexType = element.SchemaType as XmlSchemaComplexType; 389CleanupSimpleType((XmlSchemaSimpleType)element.SchemaType); 2209if (xe.SchemaType != null) 2211xe.SetElementType(xe.SchemaType);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (6)
1006element.SchemaType != null || 1071if (element.SchemaType != null) 1073SetParent(element.SchemaType, element); //Set parent for simple / complex type child of element 1078if (element.SchemaType is XmlSchemaComplexType) 1080PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, true); 1084PreprocessSimpleType((XmlSchemaSimpleType)element.SchemaType, true);
System\Xml\Schema\SchemaSetCompiler.cs (5)
385if (element.SchemaType != null) 387XmlSchemaComplexType? complexType = element.SchemaType as XmlSchemaComplexType; 394CleanupSimpleType((XmlSchemaSimpleType)element.SchemaType); 2668if (xe.SchemaType != null) 2670xe.SetElementType(xe.SchemaType);
System\Xml\Schema\XsdBuilder.cs (2)
1431if (builder._element!.SchemaType != null) 1594if (builder._element!.SchemaType != null)
System\Xml\Serialization\ImportContext.cs (1)
379Depends(el.SchemaType, refs);
System\Xml\Serialization\Mappings.cs (2)
1276if (e1.SchemaType != e2.SchemaType)
System\Xml\Serialization\SchemaObjectWriter.cs (4)
1017if (o.SchemaType is XmlSchemaComplexType) 1019Write35_XmlSchemaComplexType((XmlSchemaComplexType)o.SchemaType); 1021else if (o.SchemaType is XmlSchemaSimpleType) 1023Write9_XmlSchemaSimpleType((XmlSchemaSimpleType)o.SchemaType);
System\Xml\Serialization\XmlSchemaImporter.cs (7)
343else if (element.SchemaType != null) 345if (element.SchemaType is XmlSchemaComplexType) 346mapping = ImportType((XmlSchemaComplexType)element.SchemaType, ns, identifier, desiredMappingType, baseType); 348mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType, TypeFlags.CanBeElementValue | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeTextValue, false)!; 1243if (element.SchemaType == null) return null; 1245XmlSchemaType type = element.SchemaType; 1346XmlSchemaType? refType = refElement.SchemaType;