4 instantiations of TempAssembly
System.Private.Xml (4)
System\Xml\Serialization\XmlSerializer.cs (4)
264_tempAssembly = new TempAssembly(new XmlMapping[] { _mapping }, assembly, contract); 329return new TempAssembly(new XmlMapping[] { xmlMapping }, new Type?[] { type }, defaultNamespace, location); 619tempAssembly = new TempAssembly(mappings, new Type?[] { type }, null, null); 738TempAssembly tempAssembly = new TempAssembly(pendingMappings, new Type[] { type }, null, null);
27 references to TempAssembly
System.Private.Xml (27)
System\Xml\Serialization\CodeGenerator.cs (1)
1302return moduleBuilder.DefineType($"{TempAssembly.GeneratedAssemblyNamespace}.{name}",
System\Xml\Serialization\Compilation.cs (15)
64if (!containsSoapMapping && !TempAssembly.UseLegacySerializerGeneration) 739private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>>(); 740private Dictionary<TempAssemblyCacheKey, TempAssembly> _fastCache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 742internal TempAssembly? this[string? ns, Type t] 746TempAssembly? tempAssembly; 752Assembly lookupAssembly = TempAssembly.FindCollectibleAssembly(t) ?? t.Assembly; 760internal void Add(string? ns, Type t, TempAssembly assembly) 764TempAssembly? tempAssembly = this[ns, t]; 769Dictionary<TempAssemblyCacheKey, TempAssembly>? cache; 776Assembly? collectibleAssembly = TempAssembly.FindCollectibleAssembly(t); 780? new Dictionary<TempAssemblyCacheKey, TempAssembly>(c) 781: new Dictionary<TempAssemblyCacheKey, TempAssembly>(); 787cache = new Dictionary<TempAssemblyCacheKey, TempAssembly>(_fastCache); // Clone
System\Xml\Serialization\XmlSerializer.cs (11)
130private TempAssembly? _tempAssembly; 244Assembly? assembly = TempAssembly.LoadGeneratedAssembly(type, defaultNamespace, out 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) 600Assembly? assembly = type == null ? null : TempAssembly.LoadGeneratedAssembly(type, null, out contract); 601TempAssembly? tempAssembly; 646TempAssembly.VerifyLoadContext(serializers[i]!._rootType, type!.Assembly); 704return TempAssembly.GenerateSerializerToStream(mappings, types, null, assembly, new Hashtable(), stream); 738TempAssembly tempAssembly = new TempAssembly(pendingMappings, new Type[] { type }, null, null); 839internal void SetTempAssembly(TempAssembly tempAssembly, XmlMapping mapping)