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