示例#1
0
 public static AssemblyMetadata ReflectionOnlyLoadFrom(string path)
 {
     using (var tempAppDomain = new TempAppDomain())
     {
         var assemblyMetadata = tempAppDomain.ReflectionOnlyLoadFrom(path);
         return(assemblyMetadata);
     }
 }
示例#2
0
 public static AssemblyMetadata Load(AssemblyName name)
 {
     using (var tempAppDomain = new TempAppDomain())
     {
         var assemblyMetadata = tempAppDomain.Load(name.FullName);
         return(assemblyMetadata);
     }
 }