6 writes to RefName
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
779
schemaRefElement.
RefName
= new XmlQualifiedName(Globals.SchemaLocalName, XmlSchema.Namespace);
System.Private.Xml (5)
System\Xml\Schema\Inference\Infer.cs (2)
598
elementReference.
RefName
= new XmlQualifiedName(localName, childURI);
2402
newElement.
RefName
= copyElement.RefName;
System\Xml\Schema\XsdBuilder.cs (1)
1395
builder._element!.
RefName
= builder.ParseQName(value, "ref");
System\Xml\Serialization\XmlSchemaExporter.cs (2)
525
schemaElement.
RefName
= new XmlQualifiedName("schema", XmlSchema.Namespace);
850
refElement.
RefName
= new XmlQualifiedName(accessor.Name, accessor.Namespace);
71 references to RefName
System.Data.Common (12)
System\Data\XMLSchema.cs (12)
547
if (((XmlSchemaElement)el).
RefName
.Name.Length != 0)
758
if (sel.
RefName
.Name.Length != 0)
917
if (((el.Name == null) && (el.
RefName
.Name == table.EncodedTableName && el.
RefName
.Namespace == table.Namespace)) ||
1541
instanceName = el.Name ?? el.
RefName
.Name;
1943
_type = isAttr ? attr!.RefName.Name : el!.
RefName
.Name;
1947
typeNode = isAttr ? FindTypeNode((XmlSchemaAnnotated)_attributes![attr!.RefName]!) : FindTypeNode((XmlSchemaAnnotated)_elementsTable![el!.
RefName
]!);
2363
XmlSchemaElement? el = elem.Name != null ? elem : (XmlSchemaElement?)_elementsTable![elem.
RefName
];
2499
if (!elem.
RefName
.IsEmpty || elem.QualifiedName.Namespace != table.Namespace)
2636
if (((XmlSchemaElement)el).
RefName
.Name.Length != 0)
2683
if ((((XmlSchemaElement)choiceEl).
RefName
.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)))
2863
DataTable 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)
596
if (items[i] is XmlSchemaElement element && element.
RefName
!= null &&
597
element.
RefName
.Namespace == Globals.SerializationNamespace &&
611
if (!s_serializationSchemaElements.ContainsKey(element.
RefName
.Name))
975
else if (!element.
RefName
.IsEmpty)
976
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementRefOnLocalElementNotSupported, element.
RefName
.Name, element.
RefName
.Namespace));
1092
else if (!element.
RefName
.IsEmpty)
1093
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementRefOnLocalElementNotSupported, element.
RefName
.Name, element.
RefName
.Namespace));
System.Private.Xml (49)
System\Xml\Dom\DocumentSchemaValidator.cs (1)
106
if (!schemaElement.
RefName
.IsEmpty)
System\Xml\Schema\ContentValidator.cs (1)
1020
if (elem != null && (global || !elem.
RefName
.IsEmpty))
System\Xml\Schema\Inference\Infer.cs (11)
1070
else if ((el.
RefName
.Name == xtr.LocalName) && (el.
RefName
.Namespace == xtr.NamespaceURI))
1101
else if (el.
RefName
.Name == xtr.LocalName && el.
RefName
.Namespace == xtr.NamespaceURI)
1133
else if (el.
RefName
.Name == xtr.LocalName && el.
RefName
.Namespace == xtr.NamespaceURI)
1351
if (xse != null && xse.
RefName
!= null)
1385
if (xse != null && xse.
RefName
!= null)
1387
if (xse.
RefName
.Name == elementName && xse.
RefName
.Namespace == nsURI)
2402
newElement.RefName = copyElement.
RefName
;
System\Xml\Schema\Preprocessor.cs (4)
1325
if (element.
RefName
.IsEmpty)
1331
ValidateQNameAttribute(element, "ref", element.
RefName
);
1349
element.SetQualifiedName(element.
RefName
);
1374
if (!element.
RefName
.IsEmpty)
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
1102
if (!element.
RefName
.IsEmpty && substitution && (element.BlockResolved & XmlSchemaDerivationMethod.Substitution) == 0)
2192
if (!xe.
RefName
.IsEmpty)
2194
XmlSchemaElement? e = (XmlSchemaElement?)_schema!.Elements[xe.
RefName
];
2197
throw new XmlSchemaException(SR.Sch_UndeclaredElement, xe.
RefName
.ToString(), xe);
2202
throw new XmlSchemaException(SR.Sch_RefInvalidElement, xe.
RefName
.ToString(), xe);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
998
if (element.
RefName
.IsEmpty)
1004
ValidateQNameAttribute(element, "ref", element.
RefName
);
1022
element.SetQualifiedName(element.
RefName
);
1047
if (!element.
RefName
.IsEmpty)
System\Xml\Schema\SchemaSetCompiler.cs (6)
1155
if (localComplexType != null && localElement.SchemaTypeName == XmlQualifiedName.Empty && localElement.
RefName
== XmlQualifiedName.Empty)
1233
if (!element.
RefName
.IsEmpty && (element.ElementDecl!.Block & XmlSchemaDerivationMethod.Substitution) == 0)
2651
if (!xe.
RefName
.IsEmpty)
2653
XmlSchemaElement? e = (XmlSchemaElement?)_elements[xe.
RefName
];
2656
throw new XmlSchemaException(SR.Sch_UndeclaredElement, xe.
RefName
.ToString(), xe);
2661
throw new XmlSchemaException(SR.Sch_RefInvalidElement, xe.
RefName
.ToString(), xe);
System\Xml\Schema\XmlSchemaComplexType.cs (2)
482
if (oldElem != null && (!oldElem.
RefName
.IsEmpty || !oldElem.SchemaTypeName.IsEmpty ||
531
if (elem != null && (!elem.
RefName
.IsEmpty || !elem.SchemaTypeName.IsEmpty ||
System\Xml\Schema\XmlSchemaValidator.cs (1)
1364
else if (matchedElem.
RefName
.IsEmpty)
System\Xml\Schema\XsdBuilder.cs (1)
2152
if (!builder._element!.
RefName
.IsEmpty)
System\Xml\Serialization\ImportContext.cs (2)
374
if (!el.
RefName
.IsEmpty)
376
el = (XmlSchemaElement)_schemas.Find(el.
RefName
, typeof(XmlSchemaElement), false)!;
System\Xml\Serialization\Mappings.cs (2)
1250
if (e1.
RefName
!= e2.
RefName
)
System\Xml\Serialization\SchemaObjectWriter.cs (2)
1006
if (!o.
RefName
.IsEmpty)
1008
WriteAttribute("ref", "", o.
RefName
);
System\Xml\Serialization\XmlSchemaImporter.cs (6)
268
if (!element.
RefName
.IsEmpty)
271
ElementAccessor topAccessor = ImportElement(element.
RefName
, desiredMappingType, baseType);
1061
if (!element.
RefName
.IsEmpty)
1062
return FindElement(element.
RefName
);
1333
if (!element.
RefName
.IsEmpty)
1335
XmlSchemaElement refElement = FindElement(element.
RefName
);
System\Xml\Serialization\XmlSchemas.cs (1)
521
item = SR.Format(SR.XmlSchemaElementReference, e.
RefName
.ToString(), parentName.Name, parentName.Namespace);
System.Private.Xml.Linq (1)
System\Xml\Schema\XNodeValidator.cs (1)
143
XmlQualifiedName name = seCopy.
RefName
;