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

◆ LoadFrom() [1/2]

static Assembly System.Reflection.Assembly.LoadFrom ( string assemblyFile)
inlinestaticinherited

Definition at line 588 of file Assembly.cs.

589 {
590 if (assemblyFile == null)
591 {
592 throw new ArgumentNullException("assemblyFile");
593 }
596 {
598 {
600 {
603 }
604 }
605 }
607 {
608 if (!s_loadFromAssemblyList.Contains(fullPath))
609 {
611 }
612 }
613 return AssemblyLoadContext.Default.LoadFromAssemblyPath(fullPath);
614 }
static string GetFullPath(string path)
Definition Path.cs:881
static readonly List< string > s_loadFromAssemblyList
Definition Assembly.cs:19
static bool s_loadFromHandlerSet
Definition Assembly.cs:21
static Assembly LoadFromResolveHandler(object sender, ResolveEventArgs args)
Definition Assembly.cs:544

References System.Runtime.Loader.AssemblyLoadContext.Default, System.Runtime.Serialization.Dictionary, System.IO.Path.GetFullPath(), System.Reflection.Assembly.LoadFromResolveHandler(), System.Reflection.Assembly.s_loadFromAssemblyList, and System.Reflection.Assembly.s_loadFromHandlerSet.

Referenced by System.Activator.CreateInstanceFrom(), System.Reflection.Assembly.LoadFromResolveHandler(), System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(), and System.Reflection.Assembly.UnsafeLoadFrom().