19 writes to SchemaType
System.Private.DataContractSerialization (3)
System\Runtime\Serialization\SchemaExporter.cs (2)
188element.SchemaType = xmlDataContract.XsdType; 395element.SchemaType = keyValueType;
System\Runtime\Serialization\SchemaImporter.cs (1)
144element.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)
2112xsiElement.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); 431element.SchemaType = type; 467element.SchemaType = type; 488element.SchemaType = type; 514element.SchemaType = type; 532element.SchemaType = type; 639element.SchemaType = type; 1026element.SchemaType = type;
System\Xml\Serialization\XmlSchemas.cs (1)
736element.SchemaType = type;
58 references to SchemaType
System.Data.Common (9)
System\Data\XMLSchema.cs (9)
544if (isChoice && pt.MaxOccurs > decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 549if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 596XmlSchemaComplexType? ct = node.SchemaType as XmlSchemaComplexType; 907if (FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > decimal.One && (el.SchemaType is XmlSchemaComplexType)) 1473XmlSchemaComplexType? ct = node.SchemaType as XmlSchemaComplexType; 1937typeNode = isAttr ? attr!.SchemaType : el!.SchemaType; 2637if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) 2668if (((XmlSchemaParticle)el).MaxOccurs > decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2670if ((((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)
87if (element.SchemaType != null) 376if (element.SchemaType == null) 379return ImportType(element.SchemaType, typeQName, true/*isAnonymous*/); 931if (topLevelElement.SchemaType != null) 973if (element.SchemaType != null) 1078if (element.SchemaType != null) 1118if (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)
1009element.SchemaType != null || 1074if (element.SchemaType != null) 1076SetParent(element.SchemaType, element); //Set parent for simple / complex type child of element 1081if (element.SchemaType is XmlSchemaComplexType) 1083PreprocessComplexType((XmlSchemaComplexType)element.SchemaType, true); 1087PreprocessSimpleType((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)
384Depends(el.SchemaType, refs);
System\Xml\Serialization\Mappings.cs (2)
1252if (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)
327else if (element.SchemaType != null) 329if (element.SchemaType is XmlSchemaComplexType) 330mapping = ImportType((XmlSchemaComplexType)element.SchemaType, ns, identifier, desiredMappingType, baseType); 332mapping = ImportDataType((XmlSchemaSimpleType)element.SchemaType, ns, identifier, baseType, TypeFlags.CanBeElementValue | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeTextValue, false)!; 1211if (element.SchemaType == null) return null; 1213XmlSchemaType type = element.SchemaType; 1313XmlSchemaType? refType = refElement.SchemaType;