5 instantiations of EnumMapping
System.Xml (5)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
531
mapping = new
EnumMapping
();
System\Xml\Serialization\SoapSchemaImporter.cs (1)
557
EnumMapping enumMapping = new
EnumMapping
();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1046
mapping = new
EnumMapping
();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1605
EnumMapping enumMapping = new
EnumMapping
();
1655
EnumMapping enumMapping = new
EnumMapping
();
110 references to EnumMapping
System.Xml (110)
System\Xml\Serialization\CodeExporter.cs (1)
213
internal CodeTypeDeclaration ExportEnum(
EnumMapping
mapping, Type type) {
System\Xml\Serialization\SoapCodeExporter.cs (2)
92
if (mapping is
EnumMapping
) {
93
codeClass = ExportEnum((
EnumMapping
)mapping, typeof(SoapEnumAttribute));
System\Xml\Serialization\SoapReflectionImporter.cs (4)
451
if (itemTypeMapping is
EnumMapping
) {
521
EnumMapping
ImportEnumMapping(EnumModel model) {
529
EnumMapping
mapping = (
EnumMapping
)GetTypeMapping(typeName, typeNs, model.TypeDesc);
System\Xml\Serialization\SoapSchemaExporter.cs (3)
154
else if (mapping is
EnumMapping
)
155
return ExportEnumMapping((
EnumMapping
)mapping, ns);
350
XmlQualifiedName ExportEnumMapping(
EnumMapping
mapping, string ns) {
System\Xml\Serialization\SoapSchemaImporter.cs (1)
557
EnumMapping
enumMapping = new EnumMapping();
System\Xml\Serialization\XmlCodeExporter.cs (9)
127
else if (mapping is
EnumMapping
) {
128
codeClass = ExportEnum((
EnumMapping
)mapping, typeof(XmlEnumAttribute));
199
if (mapping is
EnumMapping
) {
205
if (((
EnumMapping
)mapping).IsFlags) {
281
if (mapping.TypeDesc.FullName != type.ToString() && !(mapping is
EnumMapping
)) {
319
if (mapping is
EnumMapping
) {
320
EnumMapping
em = (
EnumMapping
)mapping;
576
if (mapping.Mapping is StructMapping || mapping.Mapping is
EnumMapping
) return;
System\Xml\Serialization\XmlReflectionImporter.cs (8)
902
else if (itemTypeMapping is
EnumMapping
) {
1035
EnumMapping
ImportEnumMapping(EnumModel model, string ns, bool repeats) {
1044
EnumMapping
mapping = (
EnumMapping
)GetTypeMapping(typeName, typeNs, model.TypeDesc, types, model.Type);
1353
CheckChoiceIdentifierMapping((
EnumMapping
)accessor.ChoiceIdentifier.Mapping);
1733
EnumMapping
choiceMapping = (
EnumMapping
)accessor.ChoiceIdentifier.Mapping;
1842
void CheckChoiceIdentifierMapping(
EnumMapping
choiceMapping) {
System\Xml\Serialization\XmlSchemaExporter.cs (8)
516
if (mapping is
EnumMapping
) {
517
return ExportEnumMapping((
EnumMapping
)mapping, null);
526
if (mapping is
EnumMapping
) {
527
XmlSchemaType type = ExportEnumMapping((
EnumMapping
)mapping, ns);
781
if (mapping is
EnumMapping
) {
782
EnumMapping
em = (
EnumMapping
)mapping;
1006
XmlSchemaType ExportEnumMapping(
EnumMapping
mapping, string ns) {
System\Xml\Serialization\XmlSchemaImporter.cs (4)
828
ConstantMapping[] constants = ((
EnumMapping
)member.ChoiceIdentifier.Mapping).Constants;
1605
EnumMapping
enumMapping = new EnumMapping();
1653
EnumMapping
ImportEnumeratedChoice(ElementAccessor[] choice, string typeNs, string typeName) {
1655
EnumMapping
enumMapping = new EnumMapping();
System\Xml\Serialization\XmlSerializationReader.cs (13)
2128
if (mapping is StructMapping || mapping is
EnumMapping
|| mapping is NullableMapping)
2140
else if (mapping is
EnumMapping
)
2141
WriteEnumMethod((
EnumMapping
)mapping);
2157
else if (mapping is
EnumMapping
) {
2158
WriteEnumMethod((
EnumMapping
)mapping);
2255
(mapping is StructMapping || mapping is
EnumMapping
|| mapping is ArrayMapping || mapping is NullableMapping) &&
2652
if (mapping is
EnumMapping
) {
2692
string MakeUnique(
EnumMapping
mapping, string name) {
2711
string WriteHashtable(
EnumMapping
mapping, string typeName) {
2785
void WriteEnumMethod(
EnumMapping
mapping) {
2897
if (m is
EnumMapping
) {
2898
EnumMapping
mapping = (
EnumMapping
)m;
System\Xml\Serialization\XmlSerializationReaderILGen.cs (10)
195
if (mapping is StructMapping || mapping is
EnumMapping
|| mapping is NullableMapping)
210
else if (mapping is
EnumMapping
) {
211
WriteEnumMethod((
EnumMapping
)mapping);
701
if (mapping is
EnumMapping
) {
946
string MakeUnique(
EnumMapping
mapping, string name) {
965
string WriteHashtable(
EnumMapping
mapping, string typeName, out MethodBuilder get_TableName) {
1044
void WriteEnumMethod(
EnumMapping
mapping) {
1199
if (m is
EnumMapping
) {
1200
EnumMapping
mapping = (
EnumMapping
)m;
System\Xml\Serialization\XmlSerializationWriter.cs (27)
1320
if (mapping is StructMapping || mapping is
EnumMapping
){
1335
else if (mapping is
EnumMapping
)
1336
WriteEnumMethod((
EnumMapping
)mapping);
1349
else if (mapping is
EnumMapping
) {
1350
WriteEnumMethod((
EnumMapping
)mapping);
1381
(typeMapping is StructMapping || typeMapping is
EnumMapping
) &&
1437
void WriteEnumValue(
EnumMapping
mapping, string source) {
1478
if (mapping is
EnumMapping
) {
1490
if (((
EnumMapping
)mapping).IsFlags) {
1498
Writer.Write(RaCodeGen.GetStringForEnumCompare((
EnumMapping
)mapping, values[i], mapping.TypeDesc.UseReflection));
1503
Writer.Write(RaCodeGen.GetStringForEnumCompare((
EnumMapping
)mapping, (string)defaultValue, mapping.TypeDesc.UseReflection));
1522
if (mapping is
EnumMapping
) {
1523
WriteEnumValue((
EnumMapping
)mapping, source);
1832
void WriteEnumMethod(
EnumMapping
mapping) {
1965
if (m is
EnumMapping
&& !m.IsSoap) {
1966
EnumMapping
mapping = (
EnumMapping
)m;
2307
if (attribute.Mapping is
EnumMapping
)
2308
WriteEnumValue((
EnumMapping
)attribute.Mapping, "ai");
2545
string enumFullName = (enumUseReflection?"":enumTypeName + ".@") + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, enumUseReflection);
2617
enumFullName = (enumUseReflection?"":enumTypeName + ".@") + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, enumUseReflection);
2725
if (text.Mapping is
EnumMapping
) {
2726
WriteEnumValue((
EnumMapping
)text.Mapping, source);
2872
else if (element.Mapping is
EnumMapping
) {
3189
string FindChoiceEnumValue(ElementAccessor element,
EnumMapping
choiceMapping, bool useReflection) {
3449
else if (mapping is
EnumMapping
){
3605
internal string GetStringForEnumCompare(
EnumMapping
mapping, string memberName, bool useReflection){
System\Xml\Serialization\XmlSerializationWriterILGen.cs (20)
36
if (mapping is StructMapping || mapping is
EnumMapping
) {
52
else if (mapping is
EnumMapping
) {
53
WriteEnumMethod((
EnumMapping
)mapping);
114
void WriteEnumValue(
EnumMapping
mapping, SourceInfo source, out Type returnType) {
179
if (mapping is
EnumMapping
) {
187
if (((
EnumMapping
)mapping).IsFlags) {
217
if (mapping is
EnumMapping
) {
218
WriteEnumValue((
EnumMapping
)mapping, source, out argType);
554
void WriteEnumMethod(
EnumMapping
mapping) {
737
if (m is
EnumMapping
) {
738
EnumMapping
mapping = (
EnumMapping
)m;
1227
if (attribute.Mapping is
EnumMapping
)
1228
WriteEnumValue((
EnumMapping
)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType);
1553
string enumFullName = enumTypeName + ".@" + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, out enumValue);
1628
enumFullName = enumTypeName + ".@" + FindChoiceEnumValue(element, (
EnumMapping
)choice.Mapping, out enumValue);
1801
if (text.Mapping is
EnumMapping
) {
1802
WriteEnumValue((
EnumMapping
)text.Mapping, source, out argType);
1910
else if (element.Mapping is
EnumMapping
) {
2171
string FindChoiceEnumValue(ElementAccessor element,
EnumMapping
choiceMapping, out object eValue) {