LoadFromAssemblyName() 공개 메소드

public LoadFromAssemblyName ( System assemblyName ) : System.Reflection.Assembly
assemblyName System
리턴 System.Reflection.Assembly
예제 #1
0
 protected override System.Reflection.Assembly Load(System.Reflection.AssemblyName aname)
 {
     Console.WriteLine($"Delegating load of {aname.FullName}");
     try {
         return(d.LoadFromAssemblyName(aname));
     } finally {
         Console.WriteLine($"Returned from delegating load of {aname.FullName}");
     }
 }
예제 #2
0
        // This method is invoked by the VM when using the host-provided assembly load context
        // implementation.
        private static Assembly Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
        {
            AssemblyLoadContext context = (AssemblyLoadContext)(GCHandle.FromIntPtr(gchManagedAssemblyLoadContext).Target);

            return(context.LoadFromAssemblyName(assemblyName));
        }