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