25 writes to Name
System.Private.Xml (25)
System\Xml\Serialization\SoapReflectionImporter.cs (2)
653member.Name = xmlReflectionMember.MemberName; 671member.Name = model.Name;
System\Xml\Serialization\XmlReflectionImporter.cs (2)
1380member.Name = xmlReflectionMember.MemberName; 1411member.Name = model.Name;
System\Xml\Serialization\XmlSchemaImporter.cs (21)
165mapping.Members[0].Name = elementName; 207member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 208member.Name = memberScope.AddUnique(member.Name, member); 836member.Name = membersScope.AddUnique(groupRepeats ? "Items" : "Item", member); 854choiceIdentifier.Name = member.ChoiceIdentifier.MemberName; 874choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier); 1145member.Name = members.MakeRightCase("Text"); 1154member.Name = members.MakeRightCase("Text"); 1159member.Name = members.MakeRightCase("Value"); 1162member.Name = membersScope.AddUnique(member.Name, member); 1173member.Name = membersScope.MakeRightCase("Any"); 1174member.Name = membersScope.AddUnique(member.Name, member); 1421member.Name = membersScope.AddUnique(name, member); 1426member.Name = membersScope.AddUnique(member.Name, member); 1470member.Name = CodeIdentifier.MakeValid(Accessor.UnescapeName(accessor.Name)); 1471member.Name = membersScope.AddUnique(member.Name, member); 1475member.Name = membersScope.AddUnique(member.Name, member); 1501member.Name = membersScope.MakeRightCase("AnyAttr"); 1502member.Name = membersScope.AddUnique(member.Name, member); 1563member.Name = CodeIdentifier.MakeValid(xmlnsMemberName ?? "Namespaces"); 1564member.Name = membersScope.AddUnique(member.Name, member);
108 references to Name
System.Private.Xml (108)
System\Xml\Serialization\Mappings.cs (6)
596if (_members[i].Name == member.Name) 599throw new InvalidOperationException(SR.Format(SR.XmlHiddenMember, parent, member.Name, member.TypeDesc!.FullName, this.TypeName, _members[i].Name, _members[i].TypeDesc!.FullName)); 602throw new InvalidOperationException(SR.Format(SR.XmlInvalidXmlOverride, parent, member.Name, this.TypeName, _members[i].Name));
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (9)
164string nameSpecified = $"{mapping.Name}Specified"; 167if (mappings[j].Name == nameSpecified) 359string nameSpecified = $"{mapping.Name}Specified"; 362if (mappings[j].Name == nameSpecified) 1629throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order")); 1673var setMemberValue = GetSetMemberValueDelegate(o!, member.Mapping.Name); 1679var setterDelegate = GetSetMemberValueDelegate(o!, member.Mapping.Name); 1689string specifiedMemberName = $"{member.Mapping.Name}Specified"; 1753MemberInfo[] memberInfos = o!.GetType().GetMember(member.Mapping.Name);
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (12)
555xmlnsSource = (XmlSerializerNamespaces?)GetMemberValue(o!, member.Name); 583string specifiedMemberName = $"{m.Name}Specified"; 589string methodInvoke = $"ShouldSerialize{m.Name}"; 598object? memberValue = GetMemberValue(o!, m.Name); 615string specifiedMemberName = $"{m.Name}Specified"; 621string methodInvoke = $"ShouldSerialize{m.Name}"; 641object? memberValue = GetMemberValue(o!, m.Name); 1221string memberNameSpecified = $"{member.Name}Specified"; 1224if (mapping.Members[j].Name == memberNameSpecified) 1252string memberNameSpecified = $"{member.Name}Specified"; 1255if (mapping.Members[j].Name == memberNameSpecified) 1274if (mapping.Members[j].Name == member.ChoiceIdentifier.MemberName)
System\Xml\Serialization\Types.cs (3)
1111memberInfos[mappings[i].Name] = mappings[i].MemberInfo!; 1115memberInfos[$"{mappings[i].Name}Specified"] = mappings[i].CheckSpecifiedMemberInfo!; 1146if (replaceList.TryGetValue(mappings[i].Name, out MemberInfo? mi))
System\Xml\Serialization\XmlMemberMapping.cs (1)
63get { return _mapping.Name; }
System\Xml\Serialization\XmlReflectionImporter.cs (3)
915throw new InvalidOperationException(SR.Format(SR.XmlSequenceUnique, member.SequenceId.ToString(CultureInfo.InvariantCulture), "Order", member.Name)); 921throw new InvalidOperationException(SR.Format(SR.XmlSequenceInconsistent, "Order", member.Name)); 1981throw new InvalidOperationException(SR.Format(SR.XmlRpcLitXmlns, accessor.Name));
System\Xml\Serialization\XmlSchemaExporter.cs (2)
548AddXmlnsAnnotation(type, mapping.XmlnsMember.Name); 1015AddXmlnsAnnotation(type, mapping.XmlnsMember.Name);
System\Xml\Serialization\XmlSchemaImporter.cs (23)
208member.Name = memberScope.AddUnique(member.Name, member); 591throw new InvalidOperationException(SR.Format(SR.XmlIllegalOverride, type.Name, baseMember.Name, baseMember.TypeDesc!.FullName, structMapping.Members[i].TypeDesc!.FullName, declaringMapping!.TypeDesc!.FullName)); 837members?.Add(member.Name, member); 843member.ChoiceIdentifier.MemberName = $"{member.Name}ElementName"; 845member.ChoiceIdentifier.Mapping = ImportEnumeratedChoice(member.Elements, ns, $"{member.Name}ChoiceType"); 867choiceAccessor.Name = choiceIdentifier.Name; 1162member.Name = membersScope.AddUnique(member.Name, member); 1163members.Add(member.Name, member); 1174member.Name = membersScope.AddUnique(member.Name, member); 1175members.Add(member.Name, member); 1423if (member.Name.EndsWith("Specified", StringComparison.Ordinal)) 1425name = member.Name; 1426member.Name = membersScope.AddUnique(member.Name, member); 1429members.Add(member.Name, member); 1471member.Name = membersScope.AddUnique(member.Name, member); 1472if (member.Name.EndsWith("Specified", StringComparison.Ordinal)) 1474string name = member.Name; 1475member.Name = membersScope.AddUnique(member.Name, member); 1478members.Add(member.Name, member); 1502member.Name = membersScope.AddUnique(member.Name, member); 1503members.Add(member.Name, member); 1564member.Name = membersScope.AddUnique(member.Name, member); 1565members.Add(member.Name, member);
System\Xml\Serialization\XmlSerializationReader.cs (12)
2451if (mappings[j].Name == member.ChoiceIdentifier.MemberName) 2522string nameSpecified = $"{mapping.Name}Specified"; 2525if (mappings[j].Name == nameSpecified) 2702string nameSpecified = $"{mapping.Name}Specified"; 2705if (mappings[j].Name == nameSpecified) 3316CodeIdentifier.CheckValidIdentifier(mapping.Name); 3317string source = RaCodeGen.GetStringForMember("o", mapping.Name, structMapping.TypeDesc); 3323member.CheckSpecifiedSource = RaCodeGen.GetStringForMember("o", $"{mapping.Name}Specified", structMapping.TypeDesc); 3344throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order")); 3456CodeIdentifier.CheckValidIdentifier(mapping.Name); 3457string source = RaCodeGen.GetStringForMember("o", mapping.Name, structMapping.TypeDesc); 3460member.CheckSpecifiedSource = RaCodeGen.GetStringForMember("o", $"{mapping.Name}Specified", structMapping.TypeDesc);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (7)
361if (mappings[j].Name == member.ChoiceIdentifier.MemberName) 449string nameSpecified = $"{mapping.Name}Specified"; 452if (mappings[j].Name == nameSpecified) 1540CodeIdentifier.CheckValidIdentifier(mapping.Name); 1541string source = ReflectionAwareILGen.GetStringForMember("o", mapping.Name); 1547member.CheckSpecifiedSource = ReflectionAwareILGen.GetStringForMember("o", $"{mapping.Name}Specified"); 1568throw new InvalidOperationException(SR.Format(SR.XmlSequenceHierarchy, structMapping.TypeDesc.FullName, mapping.Name, declaringMapping!.TypeDesc!.FullName, "Order"));
System\Xml\Serialization\XmlSerializationWriter.cs (18)
1703WriteMemberInfo(type, typeFullName, typeVariable, member.Name); 1706string memberName = $"ShouldSerialize{member.Name}"; 1711string memberName = $"{member.Name}Specified"; 2659string memberNameSpecified = $"{member.Name}Specified"; 2662if (mapping.Members[j].Name == memberNameSpecified) 2712string memberNameSpecified = $"{member.Name}Specified"; 2716if (mapping.Members[j].Name == memberNameSpecified) 2747if (mapping.Members[j].Name == member.ChoiceIdentifier.MemberName) 3154CodeIdentifier.CheckValidIdentifier(member.Name); 3155xmlnsSource = RaCodeGen.GetStringForMember("o", member.Name, mapping.TypeDesc); 3189CodeIdentifier.CheckValidIdentifier(m.Name); 3193string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, $"ShouldSerialize{m.Name}", mapping.TypeDesc.UseReflection); 3202string memberGet = RaCodeGen.GetStringForMember("o", $"{m.Name}Specified", mapping.TypeDesc); 3208WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), m.Attribute, m.TypeDesc!, "o"); 3228CodeIdentifier.CheckValidIdentifier(m.Name); 3234string methodInvoke = RaCodeGen.GetStringForMethodInvoke("o", fullTypeName, $"ShouldSerialize{m.Name}", mapping.TypeDesc.UseReflection); 3243string memberGet = RaCodeGen.GetStringForMember("o", $"{m.Name}Specified", mapping.TypeDesc); 3256WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation!, m.Text, m.ChoiceIdentifier, m.TypeDesc!, true);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (12)
417string memberNameSpecified = $"{member.Name}Specified"; 420if (mapping.Members[j].Name == memberNameSpecified) 472string memberNameSpecified = $"{member.Name}Specified"; 476if (mapping.Members[j].Name == memberNameSpecified) 510if (mapping.Members[j].Name == member.ChoiceIdentifier.MemberName) 1027CodeIdentifier.CheckValidIdentifier(member.Name); 1028xmlnsSource = ReflectionAwareILGen.GetStringForMember("o", member.Name); 1073CodeIdentifier.CheckValidIdentifier(m.Name); 1082string memberGet = ReflectionAwareILGen.GetStringForMember("o", $"{m.Name}Specified"); 1104CodeIdentifier.CheckValidIdentifier(m.Name); 1115string memberGet = ReflectionAwareILGen.GetStringForMember("o", $"{m.Name}Specified"); 2337return new SourceInfo(GetStringForMember(obj, member.Name), obj, memberInfo, member.TypeDesc!.Type, ilg);