4 instantiations of EnumMapping
System.Private.Xml (4)
System\Xml\Serialization\SoapReflectionImporter.cs (1)
567mapping = new EnumMapping();
System\Xml\Serialization\XmlReflectionImporter.cs (1)
1201mapping = new EnumMapping();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
1742EnumMapping enumMapping = new EnumMapping(); 1800EnumMapping enumMapping = new EnumMapping();
110 references to EnumMapping
System.Private.Xml (110)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (8)
39(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 1028else if (mapping is EnumMapping enumMapping) 1168if (mapping is EnumMapping enumMapping) 1252private object WriteEnumMethod(EnumMapping mapping, Func<object, string> readFunc, object funcState) 1259private object WriteEnumMethodSoap(EnumMapping mapping) 1265private object WriteEnumMethod(EnumMapping mapping, string source) 1286private static Hashtable WriteHashtable(EnumMapping mapping) 1771if (m is EnumMapping enumMapping)
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (11)
45(mapping is StructMapping || mapping is EnumMapping) && 282if (text.Mapping is EnumMapping enumMapping) 377else if (element.Mapping is EnumMapping) 382WriteEnumMethod((EnumMapping)element.Mapping, o!); 464else if (mapping is EnumMapping enumMapping) 666if (m is EnumMapping em && em.TypeDesc!.Type == objType) 688private string? WriteEnumMethod(EnumMapping mapping, object v) 792if (attribute.Mapping is EnumMapping enumMapping) 932if (mapping is EnumMapping) 934if (((EnumMapping)mapping).IsFlags) 965if (mapping is EnumMapping enumMapping)
System\Xml\Serialization\SoapReflectionImporter.cs (4)
470if (itemTypeMapping is EnumMapping) 555private EnumMapping ImportEnumMapping(EnumModel model) 564EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc);
System\Xml\Serialization\XmlReflectionImporter.cs (8)
1037else if (itemTypeMapping is EnumMapping) 1188private EnumMapping ImportEnumMapping(EnumModel model, string? ns, bool repeats) 1198EnumMapping? mapping = (EnumMapping?)GetTypeMapping(typeName, typeNs, model.TypeDesc, _types, model.Type); 1566CheckChoiceIdentifierMapping((EnumMapping)accessor.ChoiceIdentifier.Mapping); 1992EnumMapping choiceMapping = (EnumMapping)accessor.ChoiceIdentifier.Mapping!; 2125private static void CheckChoiceIdentifierMapping(EnumMapping choiceMapping)
System\Xml\Serialization\XmlSchemaExporter.cs (6)
556if (mapping is EnumMapping) 558return ExportEnumMapping((EnumMapping)mapping, null); 569if (mapping is EnumMapping) 571XmlSchemaType type = ExportEnumMapping((EnumMapping)mapping, ns); 872if (mapping is EnumMapping em) 1141private XmlSchemaSimpleType ExportEnumMapping(EnumMapping mapping, string? ns)
System\Xml\Serialization\XmlSchemaImporter.cs (4)
847ConstantMapping[] constants = ((EnumMapping)member.ChoiceIdentifier.Mapping).Constants!; 1742EnumMapping enumMapping = new EnumMapping(); 1797private EnumMapping ImportEnumeratedChoice(ElementAccessor[] choice, string? typeNs, string typeName) 1800EnumMapping enumMapping = new EnumMapping();
System\Xml\Serialization\XmlSerializationReader.cs (11)
2244if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 2258else if (mapping is EnumMapping) 2259WriteEnumMethod((EnumMapping)mapping); 2279else if (mapping is EnumMapping) 2281WriteEnumMethod((EnumMapping)mapping); 2390(mapping is StructMapping || mapping is EnumMapping || mapping is ArrayMapping || mapping is NullableMapping) && 2823if (mapping is EnumMapping) 2871private string? MakeUnique(EnumMapping mapping, string name) 2894private string WriteHashtable(EnumMapping mapping, string typeName) 2971private void WriteEnumMethod(EnumMapping mapping) 3097if (m is EnumMapping enumMapping)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (12)
26private Dictionary<string, EnumMapping>? _enums; 29internal Dictionary<string, EnumMapping> Enums => _enums ??= new Dictionary<string, EnumMapping>(); 197if (mapping is StructMapping || mapping is EnumMapping || mapping is NullableMapping) 213else if (mapping is EnumMapping) 215WriteEnumMethod((EnumMapping)mapping); 682if (mapping is EnumMapping) 915private string? MakeUnique(EnumMapping mapping, string name) 918EnumMapping? m; 938private string WriteHashtable(EnumMapping mapping, string typeName, out MethodBuilder? get_TableName) 1015private void WriteEnumMethod(EnumMapping mapping) 1176if (m is EnumMapping enumMapping)
System\Xml\Serialization\XmlSerializationWriter.cs (26)
1721else if (mapping is EnumMapping) 1901internal string GetStringForEnumCompare(EnumMapping mapping, string memberName, bool useReflection) 2262if (mapping is StructMapping || mapping is EnumMapping) 2281else if (mapping is EnumMapping) 2282WriteEnumMethod((EnumMapping)mapping); 2298else if (mapping is EnumMapping) 2300WriteEnumMethod((EnumMapping)mapping); 2339(typeMapping is StructMapping || typeMapping is EnumMapping) && 2402private void WriteEnumValue(EnumMapping mapping, string source) 2452if (mapping is EnumMapping) 2465if (((EnumMapping)mapping).IsFlags) 2475Writer.Write(RaCodeGen.GetStringForEnumCompare((EnumMapping)mapping, values[i], mapping.TypeDesc.UseReflection)); 2481Writer.Write(RaCodeGen.GetStringForEnumCompare((EnumMapping)mapping, (string)defaultValue!, mapping.TypeDesc.UseReflection)); 2504if (mapping is EnumMapping) 2506WriteEnumValue((EnumMapping)mapping, source); 2861private void WriteEnumMethod(EnumMapping mapping) 3013if (m is EnumMapping && !m.IsSoap) 3015EnumMapping mapping = (EnumMapping)m; 3406if (attribute.Mapping is EnumMapping) 3407WriteEnumValue((EnumMapping)attribute.Mapping, "ai"); 3689string enumFullName = (enumUseReflection ? "" : $"{enumTypeName}.@") + FindChoiceEnumValue(element, (EnumMapping)choice.Mapping, enumUseReflection); 3765enumFullName = (enumUseReflection ? "" : $"{enumTypeName}.@") + FindChoiceEnumValue(element, (EnumMapping)choice.Mapping, enumUseReflection); 3885if (text.Mapping is EnumMapping enumMapping) 4052else if (element.Mapping is EnumMapping) 4445private static string FindChoiceEnumValue(ElementAccessor element, EnumMapping choiceMapping, bool useReflection)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (20)
39if (mapping is StructMapping || mapping is EnumMapping) 57else if (mapping is EnumMapping) 59WriteEnumMethod((EnumMapping)mapping); 121private void WriteEnumValue(EnumMapping mapping, SourceInfo source, out Type returnType) 197if (mapping is EnumMapping) 206if (((EnumMapping)mapping).IsFlags) 241if (mapping is EnumMapping) 243WriteEnumValue((EnumMapping)mapping, source, out argType); 596private void WriteEnumMethod(EnumMapping mapping) 787if (m is EnumMapping) 789EnumMapping mapping = (EnumMapping)m; 1263if (attribute.Mapping is EnumMapping) 1264WriteEnumValue((EnumMapping)attribute.Mapping, new SourceInfo(aiVar, aiVar, null, arrayElementTypeDesc.Type, ilg), out argType); 1609string enumFullName = $"{enumTypeName}.@{FindChoiceEnumValue(element, (EnumMapping)choice.Mapping!, out enumValue)}"; 1687enumFullName = $"{enumTypeName}.@{FindChoiceEnumValue(element, (EnumMapping)choice.Mapping!, out enumValue)}"; 1855if (text.Mapping is EnumMapping) 1857WriteEnumValue((EnumMapping)text.Mapping, source, out argType); 1971else if (element.Mapping is EnumMapping) 2239private static string FindChoiceEnumValue(ElementAccessor element, EnumMapping choiceMapping, out object? eValue)