16 writes to Name
System.Private.DataContractSerialization (5)
System\Runtime\Serialization\SchemaExporter.cs (4)
110
topLevelElement.
Name
= dataContract.TopLevelElementName!.Value;
134
element.
Name
= dataMember.Name;
376
element.
Name
= collectionDataContract.ItemName;
387
keyValueElement.
Name
= dataMember.Name;
System\Runtime\Serialization\SchemaImporter.cs (1)
143
element.
Name
= Globals.SchemaLocalName;
System.Private.Xml (11)
System\Xml\Schema\Inference\Infer.cs (4)
512
xse.
Name
= localName;
530
xse.
Name
= localName;
542
xse.
Name
= localName;
2400
newElement.
Name
= copyElement.Name;
System\Xml\Schema\XmlSchemaElement.cs (1)
259
set {
Name
= value; }
System\Xml\Schema\XsdBuilder.cs (1)
1385
builder._element!.
Name
= value;
System\Xml\Serialization\XmlSchemaExporter.cs (2)
240
element.
Name
= accessor.Name;
822
element.
Name
= accessor.Name;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
157
element.
Name
= elementName;
232
element.
Name
= member.MemberName;
System\Xml\Serialization\XmlSchemas.cs (1)
739
element.
Name
= name;
68 references to Name
System.Data.Common (9)
System\Data\XMLSchema.cs (9)
835
ds.DataSetName = XmlConvert.DecodeName(((XmlSchemaElement)_elements[0]).
Name
)!;
917
if (((el.
Name
== null) && (el.RefName.Name == table.EncodedTableName && el.RefName.Namespace == table.Namespace)) ||
918
(IsTable(el) && el.
Name
== table.TableName))
933
if (child == null && FromInference && el.
Name
== table.TableName)
941
if (!FromInference || el.
Name
!= table.TableName)
1541
instanceName = el.
Name
?? el.RefName.Name;
2363
XmlSchemaElement? el = elem.
Name
!= null ? elem : (XmlSchemaElement?)_elementsTable![elem.RefName];
2564
string? dsName = node.
Name
;
2841
throw ExceptionBuilder.CannotInstantiateAbstract(node.
Name
!);
System.Private.DataContractSerialization (24)
System\Runtime\Serialization\SchemaExporter.cs (1)
570
qname = new XmlQualifiedName(((XmlSchemaElement)item).
Name
, schema.TargetNamespace);
System\Runtime\Serialization\SchemaHelper.cs (2)
105
if (schemaObj is XmlSchemaElement schemaElement && schemaElement.
Name
== elementQName.Name)
221
return new XmlQualifiedName(schemaElement.
Name
, schema.TargetNamespace);
System\Runtime\Serialization\SchemaImporter.cs (21)
291
XmlQualifiedName currentElementName = new XmlQualifiedName(schemaElement.
Name
, schema.TargetNamespace);
355
xmlDataContract.SetTopLevelElementName(new XmlQualifiedName(element.
Name
, ns));
373
throw new InvalidDataContractException(SR.Format(SR.CannotComputeUniqueName, element.
Name
));
607
if (schemaElement.
Name
!= null)
608
s_serializationSchemaElements.Add(schemaElement.
Name
, schemaElement);
949
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementMinOccursMustBe, element.
Name
));
951
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ElementMaxOccursMustBe, element.
Name
));
954
string? memberName = element.
Name
;
968
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.FormMustBeQualified, element.
Name
));
974
memberTypeContract = ImportAnonymousElement(element, new XmlQualifiedName(string.Format(CultureInfo.InvariantCulture, "{0}.{1}Type", typeName.Name, element.
Name
), typeName.Namespace));
1060
Debug.Assert(element.
Name
!= null);
1063
dataContract.ItemName = element.
Name
;
1073
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.ArrayItemFormMustBe, element.
Name
));
1080
XmlQualifiedName shortName = new XmlQualifiedName(element.
Name
, typeName.Namespace);
1088
XmlQualifiedName fullName = new XmlQualifiedName(string.Format(CultureInfo.InvariantCulture, "{0}.{1}Type", typeName.Name, element.
Name
), typeName.Namespace);
1109
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.InvalidKeyValueType, element.
Name
));
1113
ThrowArrayTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.InvalidKeyValueTypeNamespace, element.
Name
, keyValueContract.Namespace));
1356
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.AbstractElementNotSupported, element.
Name
));
1358
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.DefaultOnElementNotSupported, element.
Name
));
1360
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.FixedOnElementNotSupported, element.
Name
));
1362
ThrowTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.Format(SR.SubstitutionGroupOnElementNotSupported, element.
Name
));
System.Private.Xml (35)
System\Xml\Schema\Inference\Infer.cs (6)
200
if (elem!.
Name
== _xtr.LocalName && elem.QualifiedName.Namespace == _xtr.NamespaceURI)
1064
if ((el.
Name
== xtr.LocalName) && (parentSchema!.TargetNamespace == childURI))
1092
if (el.
Name
== xtr.LocalName && parentSchema!.TargetNamespace == childURI)
1122
if (el.
Name
== xtr.LocalName && parentSchema!.TargetNamespace == childURI)
1353
if (xse.
Name
== elementName)
2400
newElement.Name = copyElement.
Name
;
System\Xml\Schema\Preprocessor.cs (4)
1261
if (element.
Name
!= null)
1264
element.SetQualifiedName(new XmlQualifiedName(element.
Name
, _targetNamespace));
1316
if (element.
Name
!= null)
1320
element.SetQualifiedName(new XmlQualifiedName(element.
Name
, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && _elementFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null));
System\Xml\Schema\SchemaCollectionCompiler.cs (1)
452
SendValidationEvent(SR.Sch_InvalidExamplar, examplar.
Name
, examplar);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (4)
934
if (element.
Name
!= null)
937
element.SetQualifiedName(new XmlQualifiedName(element.
Name
, _targetNamespace));
989
if (element.
Name
!= null)
993
element.SetQualifiedName(new XmlQualifiedName(element.
Name
, (element.Form == XmlSchemaForm.Qualified || (element.Form == XmlSchemaForm.None && _elementFormDefault == XmlSchemaForm.Qualified)) ? _targetNamespace : null));
System\Xml\Schema\SchemaSetCompiler.cs (1)
510
SendValidationEvent(SR.Sch_InvalidExamplar, examplar.
Name
, examplar);
System\Xml\Schema\XmlSchemaElement.cs (1)
258
get { return
Name
; }
System\Xml\Serialization\Mappings.cs (3)
1236
if (e.
Name
== element.
Name
&& e.QualifiedName.Namespace == elementNs)
1241
throw new InvalidOperationException(SR.Format(SR.XmlSerializableRootDupName, _getSchemaMethod!.DeclaringType!.FullName, e.
Name
, elementNs));
System\Xml\Serialization\SchemaObjectWriter.cs (2)
994
if (!string.IsNullOrEmpty(o.
Name
))
996
WriteAttribute(@"name", @"", o.
Name
);
System\Xml\Serialization\XmlSchemaExporter.cs (1)
287
throw new InvalidOperationException(SR.Format(SR.XmlIllegalForm, e.
Name
));
System\Xml\Serialization\XmlSchemaImporter.cs (9)
282
if (element.
Name
!.Length == 0)
287
string unescapedName = Accessor.UnescapeName(element.
Name
);
295
accessor.Name = element.
Name
;
365
throw new InvalidOperationException(SR.Format(SR.XmlElementImportedTwice, element.
Name
, ns, mapping.GetType().Name, desiredMappingType.Name));
1080
equivalentElement.SubstitutionGroup.Name == element.
Name
)
1104
identifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(element.
Name
!));
1106
identifier += CodeIdentifier.MakePascal(Accessor.UnescapeName(element.
Name
!));
1249
arrayAccessor.Name = element.
Name
;
1336
string refElementIdentifier = CodeIdentifier.MakeValid(Accessor.UnescapeName(refElement.
Name
!));
System\Xml\Serialization\XmlSchemas.cs (3)
450
return ((XmlSchemaElement)o).
Name
;
517
if (string.IsNullOrEmpty(e.
Name
))
525
item = SR.Format(SR.XmlSchemaNamedItem, ns, "element", e.
Name
, details);