6 writes to RefName
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
778schemaRefElement.RefName = new XmlQualifiedName(Globals.SchemaLocalName, XmlSchema.Namespace);
System.Private.Xml (5)
System\Xml\Schema\Inference\Infer.cs (2)
598elementReference.RefName = new XmlQualifiedName(localName, childURI); 2402newElement.RefName = copyElement.RefName;
System\Xml\Schema\XsdBuilder.cs (1)
1395builder._element!.RefName = builder.ParseQName(value, "ref");
System\Xml\Serialization\XmlSchemaExporter.cs (2)
525schemaElement.RefName = new XmlQualifiedName("schema", XmlSchema.Namespace); 850refElement.RefName = new XmlQualifiedName(accessor.Name, accessor.Namespace);
71 references to RefName
System.Data.Common (12)
System\Data\XMLSchema.cs (12)
547if (((XmlSchemaElement)el).RefName.Name.Length != 0) 756if (sel.RefName.Name.Length != 0) 914if (((el.Name == null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) || 1534instanceName = el.Name ?? el.RefName.Name; 1935_type = isAttr ? attr!.RefName.Name : el!.RefName.Name; 1939typeNode = isAttr ? FindTypeNode((XmlSchemaAnnotated)_attributes![attr!.RefName]!) : FindTypeNode((XmlSchemaAnnotated)_elementsTable![el!.RefName]!); 2351XmlSchemaElement? el = elem.Name != null ? elem : (XmlSchemaElement?)_elementsTable![elem.RefName]; 2487if (!elem.RefName.IsEmpty || elem.QualifiedName.Namespace != table.Namespace) 2623if (((XmlSchemaElement)el).RefName.Name.Length != 0) 2670if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2849DataTable table = InstantiateTable(node, (XmlSchemaComplexType)typeNode!, (node.RefName != null)); // this is wrong , correct check should be node.RefName.IsEmpty
System.Private.DataContractSerialization (9)
System\Runtime\Serialization\SchemaImporter.cs (9)
596if (items[i] is XmlSchemaElement element && element.RefName != null && 597element.RefName.Namespace == Globals.SerializationNamespace && 611if (!s_serializationSchemaElements.ContainsKey(element.RefName.Name)) 975else if (!element.RefName.IsEmpty) 976ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace)); 1092else if (!element.RefName.IsEmpty) 1093ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementRefOnLocalElementNotSupported, element.RefName.Name, element.RefName.Namespace));
System.Private.Xml (49)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
106if (!schemaElement.RefName.IsEmpty)
System\Xml\Schema\ContentValidator.cs (1)
1020if (elem != null && (global || !elem.RefName.IsEmpty))
System\Xml\Schema\Inference\Infer.cs (11)
1070else if ((el.RefName.Name == xtr.LocalName) && (el.RefName.Namespace == xtr.NamespaceURI)) 1101else if (el.RefName.Name == xtr.LocalName && el.RefName.Namespace == xtr.NamespaceURI) 1133else if (el.RefName.Name == xtr.LocalName && el.RefName.Namespace == xtr.NamespaceURI) 1351if (xse != null && xse.RefName != null) 1385if (xse != null && xse.RefName != null) 1387if (xse.RefName.Name == elementName && xse.RefName.Namespace == nsURI) 2402newElement.RefName = copyElement.RefName;
System\Xml\Schema\Preprocessor.cs (4)
1325if (element.RefName.IsEmpty) 1331ValidateQNameAttribute(element, "ref", element.RefName); 1349element.SetQualifiedName(element.RefName); 1374if (!element.RefName.IsEmpty)
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
1102if (!element.RefName.IsEmpty && substitution && (element.BlockResolved & XmlSchemaDerivationMethod.Substitution) == 0) 2192if (!xe.RefName.IsEmpty) 2194XmlSchemaElement? e = (XmlSchemaElement?)_schema!.Elements[xe.RefName]; 2197throw new XmlSchemaException(SR.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2202throw new XmlSchemaException(SR.Sch_RefInvalidElement, xe.RefName.ToString(), xe);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
998if (element.RefName.IsEmpty) 1004ValidateQNameAttribute(element, "ref", element.RefName); 1022element.SetQualifiedName(element.RefName); 1047if (!element.RefName.IsEmpty)
System\Xml\Schema\SchemaSetCompiler.cs (6)
1155if (localComplexType != null && localElement.SchemaTypeName == XmlQualifiedName.Empty && localElement.RefName == XmlQualifiedName.Empty) 1233if (!element.RefName.IsEmpty && (element.ElementDecl!.Block & XmlSchemaDerivationMethod.Substitution) == 0) 2651if (!xe.RefName.IsEmpty) 2653XmlSchemaElement? e = (XmlSchemaElement?)_elements[xe.RefName]; 2656throw new XmlSchemaException(SR.Sch_UndeclaredElement, xe.RefName.ToString(), xe); 2661throw new XmlSchemaException(SR.Sch_RefInvalidElement, xe.RefName.ToString(), xe);
System\Xml\Schema\XmlSchemaComplexType.cs (2)
482if (oldElem != null && (!oldElem.RefName.IsEmpty || !oldElem.SchemaTypeName.IsEmpty || 531if (elem != null && (!elem.RefName.IsEmpty || !elem.SchemaTypeName.IsEmpty ||
System\Xml\Schema\XmlSchemaValidator.cs (1)
1352else if (matchedElem.RefName.IsEmpty)
System\Xml\Schema\XsdBuilder.cs (1)
2152if (!builder._element!.RefName.IsEmpty)
System\Xml\Serialization\ImportContext.cs (2)
372if (!el.RefName.IsEmpty) 374el = (XmlSchemaElement)_schemas.Find(el.RefName, typeof(XmlSchemaElement), false)!;
System\Xml\Serialization\Mappings.cs (2)
1250if (e1.RefName != e2.RefName)
System\Xml\Serialization\SchemaObjectWriter.cs (2)
1006if (!o.RefName.IsEmpty) 1008WriteAttribute("ref", "", o.RefName);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
253if (!element.RefName.IsEmpty) 256ElementAccessor topAccessor = ImportElement(element.RefName, desiredMappingType, baseType); 1033if (!element.RefName.IsEmpty) 1034return FindElement(element.RefName); 1300if (!element.RefName.IsEmpty) 1302XmlSchemaElement refElement = FindElement(element.RefName);
System\Xml\Serialization\XmlSchemas.cs (1)
519item = SR.Format(SR.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace);
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
143XmlQualifiedName name = seCopy.RefName;