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