5 instantiations of EnumMapping
dotnet-svcutil-lib (5)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (1)
596
mapping = new
EnumMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
629
EnumMapping enumMapping = new
EnumMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
1197
mapping = new
EnumMapping
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
1844
EnumMapping enumMapping = new
EnumMapping
();
1901
EnumMapping enumMapping = new
EnumMapping
();
87 references to EnumMapping
dotnet-svcutil-lib (87)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeExporter.cs (1)
239
internal CodeTypeDeclaration ExportEnum(
EnumMapping
mapping, Type type)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapCodeExporter.cs (2)
94
if (mapping is
EnumMapping
)
96
codeClass = ExportEnum((
EnumMapping
)mapping, typeof(SoapEnumAttribute));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (4)
499
if (itemTypeMapping is
EnumMapping
)
584
private
EnumMapping
ImportEnumMapping(EnumModel model)
593
EnumMapping
mapping = (
EnumMapping
)GetTypeMapping(typeName, typeNs, model.TypeDesc);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (3)
177
else if (mapping is
EnumMapping
)
178
return ExportEnumMapping((
EnumMapping
)mapping, ns);
406
private XmlQualifiedName ExportEnumMapping(
EnumMapping
mapping, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
629
EnumMapping
enumMapping = new EnumMapping();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (9)
139
else if (mapping is
EnumMapping
)
141
codeClass = ExportEnum((
EnumMapping
)mapping, typeof(XmlEnumAttribute));
221
if (mapping is
EnumMapping
)
228
if (((
EnumMapping
)mapping).IsFlags)
313
if (mapping.TypeDesc.FullName != type.ToString() && !(mapping is
EnumMapping
))
358
if (mapping is
EnumMapping
)
360
EnumMapping
em = (
EnumMapping
)mapping;
662
if (mapping.Mapping is StructMapping || mapping.Mapping is
EnumMapping
) return;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (8)
1032
else if (itemTypeMapping is
EnumMapping
)
1184
private
EnumMapping
ImportEnumMapping(EnumModel model, string ns, bool repeats)
1194
EnumMapping
mapping = (
EnumMapping
)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type);
1552
CheckChoiceIdentifierMapping((
EnumMapping
)accessor.ChoiceIdentifier.Mapping);
1981
EnumMapping
choiceMapping = (
EnumMapping
)accessor.ChoiceIdentifier.Mapping;
2114
private void CheckChoiceIdentifierMapping(
EnumMapping
choiceMapping)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (8)
595
if (mapping is
EnumMapping
)
597
return ExportEnumMapping((
EnumMapping
)mapping, null);
608
if (mapping is
EnumMapping
)
610
XmlSchemaType type = ExportEnumMapping((
EnumMapping
)mapping, ns);
913
if (mapping is
EnumMapping
)
915
EnumMapping
em = (
EnumMapping
)mapping;
1184
private XmlSchemaType ExportEnumMapping(
EnumMapping
mapping, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (4)
949
ConstantMapping[] constants = ((
EnumMapping
)member.ChoiceIdentifier.Mapping).Constants;
1844
EnumMapping
enumMapping = new EnumMapping();
1898
private
EnumMapping
ImportEnumeratedChoice(ElementAccessor[] choice, string typeNs, string typeName)
1901
EnumMapping
enumMapping = new EnumMapping();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (27)
1541
if (mapping is StructMapping || mapping is
EnumMapping
)
1559
else if (mapping is
EnumMapping
)
1560
WriteEnumMethod((
EnumMapping
)mapping);
1575
else if (mapping is
EnumMapping
)
1577
WriteEnumMethod((
EnumMapping
)mapping);
1613
(typeMapping is StructMapping || typeMapping is
EnumMapping
) &&
1674
private void WriteEnumValue(
EnumMapping
mapping, string source)
1723
if (mapping is
EnumMapping
)
1736
if (((
EnumMapping
)mapping).IsFlags)
1746
Writer.Write(RaCodeGen.GetStringForEnumCompare((
EnumMapping
)mapping, values[i], mapping.TypeDesc.UseReflection));
1752
Writer.Write(RaCodeGen.GetStringForEnumCompare((
EnumMapping
)mapping, (string)defaultValue, mapping.TypeDesc.UseReflection));
1773
if (mapping is
EnumMapping
)
1775
WriteEnumValue((
EnumMapping
)mapping, source);
2128
private void WriteEnumMethod(
EnumMapping
mapping)
2279
if (m is
EnumMapping
&& !m.IsSoap)
2281
EnumMapping
mapping = (
EnumMapping
)m;
2670
if (attribute.Mapping is
EnumMapping
)
2671
WriteEnumValue((
EnumMapping
)attribute.Mapping, "ai");
2946
string enumFullName = (enumUseReflection ? "" : enumTypeName + ".@") + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, enumUseReflection);
3023
enumFullName = (enumUseReflection ? "" : enumTypeName + ".@") + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, enumUseReflection);
3144
if (text.Mapping is
EnumMapping
)
3146
WriteEnumValue((
EnumMapping
)text.Mapping, source);
3312
else if (element.Mapping is
EnumMapping
)
3659
private string FindChoiceEnumValue(ElementAccessor element,
EnumMapping
choiceMapping, bool useReflection)
3942
else if (mapping is
EnumMapping
)
4122
internal string GetStringForEnumCompare(
EnumMapping
mapping, string memberName, bool useReflection)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (20)
37
if (mapping is StructMapping || mapping is
EnumMapping
)
56
else if (mapping is
EnumMapping
)
58
WriteEnumMethod((
EnumMapping
)mapping);
126
private void WriteEnumValue(
EnumMapping
mapping, SourceInfo source, out Type returnType)
200
if (mapping is
EnumMapping
)
209
if (((
EnumMapping
)mapping).IsFlags)
244
if (mapping is
EnumMapping
)
246
WriteEnumValue((
EnumMapping
)mapping, source, out argType);
612
private void WriteEnumMethod(
EnumMapping
mapping)
811
if (m is
EnumMapping
)
813
EnumMapping
mapping = (
EnumMapping
)m;
1334
if (attribute.Mapping is
EnumMapping
)
1335
WriteEnumValue((
EnumMapping
)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType);
1690
string enumFullName = enumTypeName + ".@" + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, out enumValue);
1773
enumFullName = enumTypeName + ".@" + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, out enumValue);
1960
if (text.Mapping is
EnumMapping
)
1962
WriteEnumValue((
EnumMapping
)text.Mapping, source, out argType);
2087
else if (element.Mapping is
EnumMapping
)
2374
private string FindChoiceEnumValue(ElementAccessor element,
EnumMapping
choiceMapping, out object eValue)