2 writes to SubstitutionGroup
System.Private.Xml (2)
System\Xml\Schema\Inference\Infer.cs (1)
2406newElement.SubstitutionGroup = copyElement.SubstitutionGroup;
System\Xml\Schema\XsdBuilder.cs (1)
1360builder._element!.SubstitutionGroup = builder.ParseQName(value, "substitutionGroup");
35 references to SubstitutionGroup
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
1361if (!element.SubstitutionGroup.IsEmpty)
System.Private.Xml (34)
System\Xml\Schema\Inference\Infer.cs (1)
2406newElement.SubstitutionGroup = copyElement.SubstitutionGroup;
System\Xml\Schema\Preprocessor.cs (3)
1307if (!element.SubstitutionGroup.IsEmpty) 1309ValidateQNameAttribute(element, "type", element.SubstitutionGroup); 1364if (!element.SubstitutionGroup.IsEmpty)
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
43if (!element!.SubstitutionGroup.IsEmpty) 45XmlSchemaSubstitutionGroup? substitutionGroup = (XmlSchemaSubstitutionGroup?)_examplars[element.SubstitutionGroup]; 49substitutionGroup.Examplar = element.SubstitutionGroup; 50_examplars.Add(element.SubstitutionGroup, substitutionGroup); 2221else if (!xe.SubstitutionGroup.IsEmpty) 2223XmlSchemaElement? examplar = (XmlSchemaElement?)_schema!.Elements[xe.SubstitutionGroup]; 2226throw new XmlSchemaException(SR.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name, xe);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
980if (!element.SubstitutionGroup.IsEmpty) 982ValidateQNameAttribute(element, "type", element.SubstitutionGroup); 1037if (!element.SubstitutionGroup.IsEmpty)
System\Xml\Schema\SchemaSetCompiler.cs (8)
451if (!element!.SubstitutionGroup.IsEmpty) 453XmlSchemaElement? headElement = _elements[element.SubstitutionGroup!] as XmlSchemaElement; 467XmlSchemaSubstitutionGroup? substitutionGroup = (XmlSchemaSubstitutionGroup?)_examplars[element.SubstitutionGroup]; 471substitutionGroup.Examplar = element.SubstitutionGroup; 472_examplars.Add(element.SubstitutionGroup, substitutionGroup); 2680else if (!xe.SubstitutionGroup.IsEmpty) 2682XmlSchemaElement? examplar = (XmlSchemaElement?)_elements[xe.SubstitutionGroup]; 2685throw new XmlSchemaException(SR.Sch_UndeclaredEquivClass, xe.SubstitutionGroup.Name, xe);
System\Xml\Schema\XmlSchemaValidator.cs (1)
1381XmlQualifiedName head = memberElem.SubstitutionGroup;
System\Xml\Serialization\ImportContext.cs (3)
364if (!el.SubstitutionGroup.IsEmpty) 366if (el.SubstitutionGroup.Namespace != XmlSchema.Namespace) 368XmlSchemaElement? head = (XmlSchemaElement?)_schemas.Find(el.SubstitutionGroup, typeof(XmlSchemaElement), false);
System\Xml\Serialization\Mappings.cs (2)
1264if (e1.SubstitutionGroup != e2.SubstitutionGroup)
System\Xml\Serialization\SchemaObjectWriter.cs (2)
1002if (!o.SubstitutionGroup.IsEmpty) 1004WriteAttribute("substitutionGroup", "", o.SubstitutionGroup);
System\Xml\Serialization\XmlSchemaImporter.cs (4)
335else if (!element.SubstitutionGroup.IsEmpty) 336mapping = ImportElementType(FindElement(element.SubstitutionGroup), identifier, desiredMappingType, baseType, ns); 1050equivalentElement.SubstitutionGroup.Namespace == schema.TargetNamespace && 1051equivalentElement.SubstitutionGroup.Name == element.Name)