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