12 writes to Parent
System.Private.Xml (12)
System\Xml\Schema\Inference\Infer.cs (4)
401xsa.Parent = null; 439xsa.Parent = null; 801xse.Parent = null; 876xse.Parent = null;
System\Xml\Schema\Preprocessor.cs (3)
2157child.Parent = parent; 2169annotation.Parent = schemaObject; 2179annotation.Items[i].Parent = annotation; //Can be documentation or appInfo
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
1775child.Parent = parent; 1785annotated.Annotation.Parent = schemaObject; 1788annotated.Annotation.Items[i].Parent = annotated.Annotation; //Can be documentation or appInfo
System\Xml\Schema\SchemaSetCompiler.cs (1)
3076to.Parent = from.Parent;
System\Xml\Schema\XsdBuilder.cs (1)
2600_xso.Parent = this.ParentContainer;
49 references to Parent
System.Data.Common (5)
System\Data\XMLSchema.cs (5)
775if (_dsElement.Parent != element.Parent) 2512XmlSchemaObject e = elem.Parent!; 2513while (e.Parent != null) 2515e = e.Parent;
System.Private.Xml (44)
System\Xml\Schema\Inference\Infer.cs (5)
202_rootSchema = elem.Parent as XmlSchema; 394if (xsa.Parent == null) 432if (xsa.Parent == null) 794if (xse.Parent == null) 865if (xse.Parent == null)
System\Xml\Schema\Preprocessor.cs (1)
980currentSchemaObject = currentSchemaObject.Parent;
System\Xml\Schema\SchemaNamespacemanager.cs (2)
26for (XmlSchemaObject? current = _node; current != null; current = current.Parent) 41for (XmlSchemaObject? current = _node; current != null; current = current.Parent)
System\Xml\Schema\SchemaSetCompiler.cs (3)
1602if (baseChoice.Parent == null || derivedChoice.Parent == null) 3076to.Parent = from.Parent;
System\Xml\Schema\XmlSchemaSet.cs (3)
1177if (!existingSchemas.Contains((XmlSchema?)elementToRemove!.Parent)) 1185if (!existingSchemas.Contains((XmlSchema?)attributeToRemove!.Parent)) 1193if (!existingSchemas.Contains((XmlSchema?)schemaTypeToRemove!.Parent))
System\Xml\Serialization\ImportContext.cs (2)
230if (o.Parent is XmlSchema parent) 243if (item.Parent is XmlSchema)
System\Xml\Serialization\Mappings.cs (2)
1217if (element.Parent == null || !(element.Parent is XmlSchema))
System\Xml\Serialization\SchemaObjectWriter.cs (5)
143o = o.Parent; 305if (o.Parent != null && !(o.Parent is XmlSchema)) 983if (o.Parent != null && !(o.Parent is XmlSchema))
System\Xml\Serialization\Types.cs (1)
1401parent = parent.Parent;
System\Xml\Serialization\XmlSchemaImporter.cs (8)
175XmlSchema? schema = xso.Parent as XmlSchema; 294accessor.IsTopLevelInSchema = element.Parent is XmlSchema; 336while (parent.Parent != null && type != parent) 338parent = parent.Parent; 1984while (parent.Parent != null) 1986parent = parent.Parent; 2012while (parent.Parent != null) 2014parent = parent.Parent;
System\Xml\Serialization\XmlSchemas.cs (12)
469while (item.Parent != null) 471if (item.Parent is XmlSchemaType type) 478item = item.Parent; 490while (o.Parent != null && !(o.Parent is XmlSchema)) 492o = o.Parent; 497while (tmp.Parent != null) 499tmp = tmp.Parent; 703while (source.Parent != null) 705source = source.Parent; 761while (parent.Parent != null) 763parent = parent.Parent;