2 writes to ChoiceIdentifier
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
1548accessor.ChoiceIdentifier = new ChoiceIdentifierAccessor();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (1)
944member.ChoiceIdentifier = new ChoiceIdentifierAccessor();
47 references to ChoiceIdentifier
dotnet-svcutil-lib (47)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (3)
1161if (mappings[i].ChoiceIdentifier != null) 1162memberInfos[mappings[i].ChoiceIdentifier.MemberName] = mappings[i].ChoiceIdentifier.MemberInfo;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (2)
795if (member.ChoiceIdentifier != null) 798attribute.Arguments.Add(new CodeAttributeArgument(new CodePrimitiveExpression(member.ChoiceIdentifier.MemberName)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (11)
1549accessor.ChoiceIdentifier.MemberName = a.XmlChoiceIdentifier.MemberName; 1550accessor.ChoiceIdentifier.MemberInfo = a.XmlChoiceIdentifier.MemberInfo; 1551accessor.ChoiceIdentifier.Mapping = ImportTypeMapping(_modelScope.GetTypeModel(choiceIdentifierType), ns, ImportContext.Element, String.Empty, null, limiter); 1552CheckChoiceIdentifierMapping((EnumMapping)accessor.ChoiceIdentifier.Mapping); 1973if (accessor.ChoiceIdentifier != null) 1976accessor.ChoiceIdentifier.MemberIds = new string[accessor.Elements.Length]; 1981EnumMapping choiceMapping = (EnumMapping)accessor.ChoiceIdentifier.Mapping; 1991accessor.ChoiceIdentifier.MemberIds[i] = choiceMapping.Constants[j].Name; 2005accessor.ChoiceIdentifier.MemberIds[i] = choiceMapping.Constants[j].Name; 2016throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingAnyValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName)); 2022throw new InvalidOperationException(string.Format(ResXml.XmlChoiceMissingValue, accessor.ChoiceIdentifier.Mapping.TypeDesc.FullName, id, element.Name, element.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (12)
945member.ChoiceIdentifier.MemberName = member.Name + "ElementName"; 947member.ChoiceIdentifier.Mapping = ImportEnumeratedChoice(member.Elements, ns, member.Name + "ChoiceType"); 948member.ChoiceIdentifier.MemberIds = new string[member.Elements.Length]; 949ConstantMapping[] constants = ((EnumMapping)member.ChoiceIdentifier.Mapping).Constants; 952member.ChoiceIdentifier.MemberIds[i] = constants[i].Name; 956choiceIdentifier.Name = member.ChoiceIdentifier.MemberName; 959choiceIdentifier.TypeDesc = member.ChoiceIdentifier.Mapping.TypeDesc.CreateArrayTypeDesc(); 963choiceIdentifier.TypeDesc = member.ChoiceIdentifier.Mapping.TypeDesc; 971choiceAccessor.Mapping = member.ChoiceIdentifier.Mapping; 976choiceAccessor.Name = choiceIdentifier.Name = member.ChoiceIdentifier.MemberName = membersScope.AddUnique(member.ChoiceIdentifier.MemberName, choiceIdentifier); 1396if (choiceMember.ChoiceIdentifier != null) return null;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (11)
2010if (member.ChoiceIdentifier != null) 2014if (mapping.Members[j].Name == member.ChoiceIdentifier.MemberName) 2016if (member.ChoiceIdentifier.Mapping.TypeDesc.UseReflection) 2026if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 2041WriteMember(source, enumSource, member.ElementsSortedByDerivation, member.Text, member.ChoiceIdentifier, member.TypeDesc, writeAccessors || hasWrapperElement); 2516if (m.ChoiceIdentifier != null) 2518CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.MemberName); 2519choiceSource = RaCodeGen.GetStringForMember("o", m.ChoiceIdentifier.MemberName, mapping.TypeDesc); 2521WriteMember(RaCodeGen.GetStringForMember("o", m.Name, mapping.TypeDesc), choiceSource, m.ElementsSortedByDerivation, m.Text, m.ChoiceIdentifier, m.TypeDesc, true); 3935if (member.ChoiceIdentifier != null) 3937string memberName = member.ChoiceIdentifier.MemberName;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (8)
517if (member.ChoiceIdentifier != null) 521if (mapping.Members[j].Name == member.ChoiceIdentifier.MemberName) 530if (enumSource == null) throw new InvalidOperationException(string.Format(ResXml.XmlInternalErrorDetails, "Can not find " + member.ChoiceIdentifier.MemberName + " in the members mapping.")); 536WriteMember(new SourceInfo(source, source, null, null, ilg), enumSource, member.ElementsSortedByDerivation, member.Text, member.ChoiceIdentifier, member.TypeDesc, writeAccessors || hasWrapperElement); 1176if (m.ChoiceIdentifier != null) 1178CodeIdentifier.CheckValidIdentifier(m.ChoiceIdentifier.MemberName); 1179choiceSource = RaCodeGen.GetStringForMember("o", m.ChoiceIdentifier.MemberName, mapping.TypeDesc); 1182WriteMember(RaCodeGen.GetSourceForMember("o", m, m.MemberInfo, mapping.TypeDesc, ilg), choiceSource, m.ElementsSortedByDerivation, m.Text, m.ChoiceIdentifier, m.TypeDesc, true);