Beispiel #1
0
        internal static Assembly LoadFrom(string assemblyPath)
        {
#if CORECLR
            return(PSAssemblyLoadContext.LoadFrom(assemblyPath));
#else
            return(Assembly.LoadFrom(assemblyPath));
#endif
        }
Beispiel #2
0
 /// <summary>
 /// Load assembly from byte stream.
 /// </summary>
 internal static Assembly LoadFrom(Stream assembly)
 {
     return(PSAssemblyLoadContext.LoadFrom(assembly));
 }