4 instantiations of TempAssembly
System.Private.Xml (4)
System\Xml\Serialization\XmlSerializer.cs (4)
264
_tempAssembly = new
TempAssembly
(new XmlMapping[] { _mapping }, assembly, contract);
329
return new
TempAssembly
(new XmlMapping[] { xmlMapping }, new Type?[] { type }, defaultNamespace, location);
616
tempAssembly = new
TempAssembly
(mappings, new Type?[] { type }, null, null);
735
TempAssembly tempAssembly = new
TempAssembly
(pendingMappings, new Type[] { type }, null, null);
25 references to TempAssembly
System.Private.Xml (25)
System\Xml\Serialization\CodeGenerator.cs (1)
1272
return moduleBuilder.DefineType($"{
TempAssembly
.GeneratedAssemblyNamespace}.{name}",
System\Xml\Serialization\Compilation.cs (13)
63
if (!containsSoapMapping && !
TempAssembly
.UseLegacySerializerGeneration)
692
private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey,
TempAssembly
>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey,
TempAssembly
>>();
693
private Dictionary<TempAssemblyCacheKey,
TempAssembly
> _fastCache = new Dictionary<TempAssemblyCacheKey,
TempAssembly
>();
695
internal
TempAssembly
? this[string? ns, Type t]
699
TempAssembly
? tempAssembly;
712
internal void Add(string? ns, Type t,
TempAssembly
assembly)
716
TempAssembly
? tempAssembly = this[ns, t];
722
Dictionary<TempAssemblyCacheKey,
TempAssembly
>? cache;
727
? new Dictionary<TempAssemblyCacheKey,
TempAssembly
>(c)
728
: new Dictionary<TempAssemblyCacheKey,
TempAssembly
>();
734
cache = new Dictionary<TempAssemblyCacheKey,
TempAssembly
>(_fastCache); // Clone
System\Xml\Serialization\XmlSerializer.cs (11)
130
private
TempAssembly
? _tempAssembly;
244
Assembly? assembly =
TempAssembly
.LoadGeneratedAssembly(type, defaultNamespace, out 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)
597
Assembly? assembly = type == null ? null :
TempAssembly
.LoadGeneratedAssembly(type, null, out contract);
598
TempAssembly
? tempAssembly;
643
TempAssembly
.VerifyLoadContext(serializers[i]!._rootType, type!.Assembly);
701
return
TempAssembly
.GenerateSerializerToStream(mappings, types, null, assembly, new Hashtable(), stream);
735
TempAssembly
tempAssembly = new TempAssembly(pendingMappings, new Type[] { type }, null, null);
836
internal void SetTempAssembly(
TempAssembly
tempAssembly, XmlMapping mapping)