10 writes to Name
System.Private.DataContractSerialization (10)
System\Runtime\Serialization\ClassDataContract.cs (6)
737Members[i].Name = memberNames[i]; 858memberContract.Name = memberAttribute.Name; 861memberContract.Name = member.Name; 863memberContract.Name = DataContract.EncodeLocalName(memberContract.Name); 918memberContract.Name = DataContract.EncodeLocalName(member.Name); 932memberContract.Name = DataContract.EncodeLocalName(member.Name);
System\Runtime\Serialization\EnumDataContract.cs (3)
241memberContract.Name = memberAttribute.Value; 244memberContract.Name = field.Name; 259DataMember memberContract = new DataMember(field) { Name = field.Name };
System\Runtime\Serialization\SchemaImporter.cs (1)
1216DataMember dataMember = new DataMember(Globals.SchemaMemberInfoPlaceholder) { Name = enumFacet.Value, Order = enumValue };
44 references to Name
System.Private.DataContractSerialization (42)
System\Runtime\Serialization\ClassDataContract.cs (15)
258if (memberNamesTable.TryGetValue(memberContract.Name, out DataMember? existingMemberContract)) 266memberContract.Name), 269memberNamesTable.Add(memberContract.Name, memberContract); 713MemberNames[i + baseMemberCount] = dictionary.Add(Members[i].Name); 738MemberNames[i] = dictionary.Add(Members[i].Name); 863memberContract.Name = DataContract.EncodeLocalName(memberContract.Name); 1005&& membersInHierarchy[endIndex]._member.Name == membersInHierarchy[endIndex + 1]._member.Name 1301int nameCompare = string.CompareOrdinal(x._member.Name, y._member.Name); 1425membersDictionary.Add(Members[i].Name, Members[i]); 1431if (membersDictionary.TryGetValue(dataContract.Members[i].Name, out DataMember? dataMember)) 1435membersDictionary.Remove(dataMember.Name); 1491return string.CompareOrdinal(x.Name, y.Name);
System\Runtime\Serialization\DataMember.cs (3)
297Name, 317return (Name == dataMember.Name
System\Runtime\Serialization\EnumDataContract.cs (4)
143_childElementNames[i] = dictionary.Add(Members[i].Name); 380string memberName = Members[i].Name; 427memberNames1[i] = Members[i].Name; 428memberNames2[i] = enumContract.Members[i].Name;
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (2)
380ReadValue(memberType, dataMember.Name); 385value = ReadValue(memberType, dataMember.Name);
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
286_ilg.Call(thisObj: null, XmlFormatGeneratorStatics.ThrowRequiredMemberMustBeEmittedMethod, member.Name, classContract.UnderlyingType);
System\Runtime\Serialization\Json\ReflectionJsonFormatWriter.cs (1)
239XmlObjectSerializerWriteContext.ThrowRequiredMemberMustBeEmitted(member.Name, classContract.UnderlyingType);
System\Runtime\Serialization\ReflectionReader.cs (1)
386string name = dataMember.Name;
System\Runtime\Serialization\ReflectionXmlFormatWriter.cs (4)
173XmlObjectSerializerWriteContext.ThrowRequiredMemberMustBeEmitted(member.Name, classContract.UnderlyingType); 186ReflectionWriteStartElement(xmlWriter, memberType, ns, ns.Value, member.Name); 237string? name = member.Name; 247if (name == members[j].Name)
System\Runtime\Serialization\SchemaExporter.cs (3)
134element.Name = dataMember.Name; 387keyValueElement.Name = dataMember.Name; 439facet.Value = enumDataContract.Members[i].Name;
System\Runtime\Serialization\SchemaImporter.cs (2)
1116dataContract.KeyName = key.Name; 1117dataContract.ValueName = value.Name;
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (2)
446ReadValue(memberType, dataMember.Name, classContract.XmlName.Namespace); 451value = ReadValue(memberType, dataMember.Name, classContract.XmlName.Namespace);
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (3)
352_ilg.Call(thisObj: null, XmlFormatGeneratorStatics.ThrowRequiredMemberMustBeEmittedMethod, member.Name, classContract.UnderlyingType); 797string name = member.Name; 807if (name == members[j].Name)
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
125_xPathBuilder.Append(XPathQueryGenerator.XPathSeparator + prefix + XPathQueryGenerator.NsSeparator + contextMember.Name);
System.Runtime.Serialization.Schema (2)
System\Runtime\Serialization\Schema\CodeExporter.cs (2)
849string dataMemberName = GetNameForAttribute(dataMember.Name); 1089string stringValue = enumDataContract.DataMembers[i].Name;