4 instantiations of TempAssembly
System.Private.Xml (4)
System\Xml\Serialization\XmlSerializer.cs (4)
256
_tempAssembly = new
TempAssembly
(new XmlMapping[] { _mapping }, assembly, contract);
316
return new
TempAssembly
(new XmlMapping[] { xmlMapping }, new Type?[] { type }, defaultNamespace, location);
584
tempAssembly = new
TempAssembly
(mappings, new Type?[] { type }, null, null);
702
TempAssembly tempAssembly = new
TempAssembly
(pendingMappings, new Type[] { type }, null, null);
25 references to TempAssembly
System.Private.Xml (25)
System\Xml\Serialization\CodeGenerator.cs (1)
1270
return moduleBuilder.DefineType($"{
TempAssembly
.GeneratedAssemblyNamespace}.{name}",
System\Xml\Serialization\Compilation.cs (13)
62
if (!containsSoapMapping && !
TempAssembly
.UseLegacySerializerGeneration)
690
private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey,
TempAssembly
>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey,
TempAssembly
>>();
691
private Dictionary<TempAssemblyCacheKey,
TempAssembly
> _fastCache = new Dictionary<TempAssemblyCacheKey,
TempAssembly
>();
693
internal
TempAssembly
? this[string? ns, Type t]
697
TempAssembly
? tempAssembly;
710
internal void Add(string? ns, Type t,
TempAssembly
assembly)
714
TempAssembly
? tempAssembly = this[ns, t];
720
Dictionary<TempAssemblyCacheKey,
TempAssembly
>? cache;
725
? new Dictionary<TempAssemblyCacheKey,
TempAssembly
>(c)
726
: new Dictionary<TempAssemblyCacheKey,
TempAssembly
>();
732
cache = new Dictionary<TempAssemblyCacheKey,
TempAssembly
>(_fastCache); // Clone
System\Xml\Serialization\XmlSerializer.cs (11)
130
private
TempAssembly
? _tempAssembly;
236
Assembly? assembly =
TempAssembly
.LoadGeneratedAssembly(type, defaultNamespace, out contract);
294
internal static
TempAssembly
? GenerateTempAssembly(XmlMapping xmlMapping)
300
internal static
TempAssembly
? GenerateTempAssembly(XmlMapping xmlMapping, Type? type, string? defaultNamespace)
306
internal static
TempAssembly
? GenerateTempAssembly(XmlMapping xmlMapping, Type? type, string? defaultNamespace, string? location)
565
Assembly? assembly = type == null ? null :
TempAssembly
.LoadGeneratedAssembly(type, null, out contract);
566
TempAssembly
? tempAssembly;
611
TempAssembly
.VerifyLoadContext(serializers[i]!._rootType, type!.Assembly);
669
return
TempAssembly
.GenerateSerializerToStream(mappings, types, null, assembly, new Hashtable(), stream);
702
TempAssembly
tempAssembly = new TempAssembly(pendingMappings, new Type[] { type }, null, null);
802
internal void SetTempAssembly(
TempAssembly
tempAssembly, XmlMapping mapping)