2 types derived from XmlMapping
System.Private.Xml (2)
System\Xml\Serialization\XmlMembersMapping.cs (1)
14public class XmlMembersMapping : XmlMapping
System\Xml\Serialization\XmlTypeMapping.cs (1)
12public class XmlTypeMapping : XmlMapping
67 references to XmlMapping
dotnet-svcutil.xmlserializer (5)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (5)
47List<XmlMapping> mappings = new List<XmlMapping>(); 117private List<Type> CollectXmlSerializerTypes(Assembly assembly, List<XmlMapping> mappings) 244var xmlMappings = (Collection<XmlMapping>)getXmlMappingsMethod.Invoke(behavior, new object[] { }); 247foreach (XmlMapping map in xmlMappings)
netstandard (1)
netstandard.cs (1)
2419[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlMapping))]
System.Private.Xml (58)
System\Xml\Serialization\Compilation.cs (12)
42internal TempAssembly(XmlMapping[] xmlMappings, Assembly assembly, XmlSerializerImplementation? contract) 51internal TempAssembly(XmlMapping[] xmlMappings, Type?[] types, string? defaultNamespace, string? location) 108internal void InitAssemblyMethods(XmlMapping[] xmlMappings) 301internal static bool GenerateSerializerToStream(XmlMapping[] xmlMappings, Type?[] types, string? defaultNamespace, Assembly? assembly, Hashtable assemblies, Stream stream) 305foreach (XmlMapping mapping in xmlMappings) 438internal static Assembly GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type?[] types) 442var scopeTable = new Dictionary<TypeScope, XmlMapping>(); 443foreach (XmlMapping mapping in xmlMappings) 454foreach (var mapping in xmlMappings) 549internal bool CanRead(XmlMapping mapping, XmlReader xmlReader) 607internal object? InvokeReader(XmlMapping mapping, XmlReader xmlReader, XmlDeserializationEvents events, string? encodingStyle) 634internal void InvokeWriter(XmlMapping mapping, XmlWriter xmlWriter, object? o, XmlSerializerNamespaces? namespaces, string? encodingStyle, string? id)
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (3)
22private readonly XmlMapping _mapping; 27public ReflectionXmlSerializationReader(XmlMapping mapping, XmlReader xmlReader, XmlDeserializationEvents events, string? encodingStyle) 57XmlMapping xmlMapping = _mapping;
System\Xml\Serialization\ReflectionXmlSerializationWriter.cs (3)
18private readonly XmlMapping _mapping; 20public ReflectionXmlSerializationWriter(XmlMapping xmlMapping, XmlWriter xmlWriter, XmlSerializerNamespaces namespaces, string? encodingStyle, string? id) 60XmlMapping xmlMapping = _mapping;
System\Xml\Serialization\SoapReflectionImporter.cs (1)
92xmlMapping.SetKeyInternal(XmlMapping.GenerateKey(type, null, defaultNamespace));
System\Xml\Serialization\XmlMapping.cs (1)
130internal static bool IsShallow(XmlMapping[] mappings)
System\Xml\Serialization\XmlReflectionImporter.cs (2)
177xmlMapping.SetKeyInternal(XmlMapping.GenerateKey(type, root, defaultNamespace)); 2283mapping.SetKeyInternal(XmlMapping.GenerateKey(type, a.XmlRoot, defaultNamespace));
System\Xml\Serialization\XmlSerializationGeneratedCode.cs (4)
148internal void GeneratePublicMethods(string privateName, string publicName, string?[] methods, XmlMapping[] xmlMappings) 239internal string GenerateTypedSerializer(string? readMethod, string? writeMethod, XmlMapping mapping, CodeIdentifiers classes, string baseSerializer, string readerClass, string writerClass) 333private void GenerateGetSerializer(Hashtable serializers, XmlMapping[] xmlMappings) 367internal void GenerateSerializerContract(XmlMapping[] xmlMappings, Type?[] types, string readerType, string?[] readMethods, string writerType, string?[] writerMethods, Hashtable serializers)
System\Xml\Serialization\XmlSerializationILGen.cs (4)
207internal FieldBuilder GeneratePublicMethods(string privateName, string publicName, string[] methods, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder) 312internal string GenerateTypedSerializer(string readMethod, string writeMethod, XmlMapping mapping, CodeIdentifiers classes, string baseSerializer, string readerClass, string writerClass) 434private void GenerateGetSerializer(Dictionary<string, string> serializers, XmlMapping[] xmlMappings, TypeBuilder serializerContractTypeBuilder) 479internal void GenerateSerializerContract(XmlMapping[] xmlMappings, Type[] types, string readerType, string[] readMethods, string writerType, string[] writerMethods, Dictionary<string, string> serializers)
System\Xml\Serialization\XmlSerializationReader.cs (1)
2327internal string? GenerateElement(XmlMapping xmlMapping)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
265internal string? GenerateElement(XmlMapping xmlMapping)
System\Xml\Serialization\XmlSerializationWriter.cs (1)
2314internal string? GenerateElement(XmlMapping xmlMapping)
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
72internal string? GenerateElement(XmlMapping xmlMapping)
System\Xml\Serialization\XmlSerializer.cs (24)
135private XmlMapping _mapping = null!; 264_tempAssembly = new TempAssembly(new XmlMapping[] { _mapping }, assembly, contract); 305internal static TempAssembly? GenerateTempAssembly(XmlMapping xmlMapping) 312internal static TempAssembly? GenerateTempAssembly(XmlMapping xmlMapping, Type? type, string? defaultNamespace) 319internal static TempAssembly? GenerateTempAssembly(XmlMapping xmlMapping, Type? type, string? defaultNamespace, string? location) 329return new TempAssembly(new XmlMapping[] { xmlMapping }, new Type?[] { type }, defaultNamespace, location); 426XmlMapping mapping = GetMapping(); 433private XmlMapping GetMapping() 533XmlMapping mapping = GetMapping(); 538private static bool ShouldUseReflectionBasedSerialization(XmlMapping mapping) 571public static XmlSerializer?[] FromMappings(XmlMapping[]? mappings) 578public static XmlSerializer?[] FromMappings(XmlMapping[]? mappings, Type? type) 582foreach (var mapping in mappings) 608if (XmlMapping.IsShallow(mappings)) 649private static XmlSerializer[] GetReflectionBasedSerializers(XmlMapping[] mappings, Type? type) 666internal static bool GenerateSerializer(Type[]? types, XmlMapping[] mappings, Stream stream) 674if (XmlMapping.IsShallow(mappings)) 706private static XmlSerializer[] GetSerializersFromCache(XmlMapping[] mappings, Type type) 728XmlMapping[] pendingMappings = new XmlMapping[pendingKeys.Count]; 836internal void SetTempAssembly(TempAssembly tempAssembly, XmlMapping mapping) 853mapping.SetKeyInternal(XmlMapping.GenerateKey(type, null, null)); 1023public XmlMapping Mapping; 1024public XmlSerializerMappingKey(XmlMapping mapping)
System.Xml (1)
System.Xml.cs (1)
144[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlMapping))]
System.Xml.Serialization (1)
System.Xml.Serialization.cs (1)
20[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlMapping))]
System.Xml.XmlSerializer (1)
artifacts\obj\System.Xml.XmlSerializer\Debug\net10.0\System.Xml.XmlSerializer.Forwards.cs (1)
42[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Serialization.XmlMapping))]