LoadFromAssemblyName() public method

public LoadFromAssemblyName ( System assemblyName ) : System.Reflection.Assembly
assemblyName System
return System.Reflection.Assembly
コード例 #1
0
ファイル: Program.cs プロジェクト: lambdageek/alcdel
 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
ファイル: AssemblyLoadContext.cs プロジェクト: yukozh/coreclr
        // 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));
        }