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