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