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