Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AssemblyLoadContext() [4/4]

System.Runtime.Loader.AssemblyLoadContext.AssemblyLoadContext ( bool representsTPALoadContext,
bool isCollectible,
string name )
inlineprotected

Definition at line 359 of file AssemblyLoadContext.cs.

360 {
362 _name = name;
363 _unloadLock = new object();
364 if (!isCollectible)
365 {
366 GC.SuppressFinalize(this);
367 }
371 {
372 _id = s_nextId++;
374 }
375 }
void Add(TKey key, TValue value)
static Dictionary< long, WeakReference< AssemblyLoadContext > > AllContexts
static IntPtr InitializeAssemblyLoadContext(IntPtr ptrAssemblyLoadContext, bool fRepresentsTPALoadContext, bool isCollectible)
static IntPtr ToIntPtr(GCHandle value)
Definition GCHandle.cs:138
static GCHandle Alloc(object? value)
Definition GCHandle.cs:81

References System.Runtime.Loader.AssemblyLoadContext._id, System.Runtime.Loader.AssemblyLoadContext._isCollectible, System.Runtime.Loader.AssemblyLoadContext._name, System.Runtime.Loader.AssemblyLoadContext._nativeAssemblyLoadContext, System.Runtime.Loader.AssemblyLoadContext._unloadLock, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Runtime.Loader.AssemblyLoadContext.AllContexts, System.Runtime.InteropServices.GCHandle.Alloc(), System.Runtime.Loader.AssemblyLoadContext.InitializeAssemblyLoadContext(), System.Runtime.Loader.AssemblyLoadContext.IsCollectible, System.Runtime.Loader.AssemblyLoadContext.s_nextId, System.GC.SuppressFinalize(), and System.Runtime.InteropServices.GCHandle.ToIntPtr().