3 writes to MemberName
System.Private.Xml (3)
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1563
accessor.ChoiceIdentifier.
MemberName
= a.XmlChoiceIdentifier.MemberName;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
843
member.ChoiceIdentifier.
MemberName
= $"{member.Name}ElementName";
874
choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.
MemberName
= membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier);
30 references to MemberName
System.Private.Xml (30)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (4)
145
throw CreateInvalidChoiceIdentifierValueException(choice.Mapping!.TypeDesc!.FullName, choice.
MemberName
!);
251
throw CreateChoiceIdentifierValueException(choice.Mapping!.TypeDesc!.FullName, choice.
MemberName
!, elem.Name, elem.NamespaceURI);
638
choiceSource = GetMemberValue(o!, m.ChoiceIdentifier.
MemberName
!);
1274
if (mapping.Members[j].Name == member.ChoiceIdentifier.
MemberName
)
System\Xml\Serialization\Types.cs (1)
1113
memberInfos[mappings[i].ChoiceIdentifier!.
MemberName
!] = mappings[i].ChoiceIdentifier!.MemberInfo!;
System\Xml\Serialization\XmlSchemaImporter.cs (2)
854
choiceIdentifier.Name = member.ChoiceIdentifier.
MemberName
;
874
choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.
MemberName
, choiceIdentifier);
System\Xml\Serialization\XmlSerializationReader.cs (4)
2451
if (mappings[j].Name == member.ChoiceIdentifier.
MemberName
)
2459
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.
MemberName
+ " in the members mapping."));
2469
CodeIdentifier.CheckValidIdentifier(mapping.ChoiceIdentifier.
MemberName
);
2470
return RaCodeGen.GetStringForMember(parent, mapping.ChoiceIdentifier.
MemberName
, parentTypeDesc);
System\Xml\Serialization\XmlSerializationReaderILGen.cs (4)
361
if (mappings[j].Name == member.ChoiceIdentifier.
MemberName
)
369
if (choiceSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.
MemberName
+ " in the members mapping."));
379
CodeIdentifier.CheckValidIdentifier(mapping.ChoiceIdentifier.
MemberName
);
380
return ReflectionAwareILGen.GetStringForMember(parent, mapping.ChoiceIdentifier.
MemberName
);
System\Xml\Serialization\XmlSerializationWriter.cs (8)
1716
string memberName = member.ChoiceIdentifier.
MemberName
!;
2747
if (mapping.Members[j].Name == member.ChoiceIdentifier.
MemberName
)
2759
if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.
MemberName
+ " in the members mapping."));
3253
CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.
MemberName
);
3254
choiceSource = RaCodeGen.GetStringForMember("o", m.ChoiceIdentifier.
MemberName
, mapping.TypeDesc);
3517
WriteQuotedCSharpString(choice.
MemberName
);
3799
WriteQuotedCSharpString(choice.
MemberName
);
4239
WriteQuotedCSharpString(choice.
MemberName
);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (7)
510
if (mapping.Members[j].Name == member.ChoiceIdentifier.
MemberName
)
519
if (enumSource == null) throw new InvalidOperationException(SR.Format(SR.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.
MemberName
+ " in the members mapping."));
1123
CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.
MemberName
);
1124
choiceSource = ReflectionAwareILGen.GetStringForMember("o", m.ChoiceIdentifier.
MemberName
);
1460
ilg.Ldstr(GetCSharpString(choice.
MemberName
));
1754
ilg.Ldstr(GetCSharpString(choice.
MemberName
));
2174
ilg.Ldstr(GetCSharpString(choice.
MemberName
));