LoadUnmanagedDll() protected méthode

protected LoadUnmanagedDll ( string unmanagedDllName ) : System.IntPtr
unmanagedDllName string
Résultat System.IntPtr
Exemple #1
0
        // This method is invoked by the VM when using the host-provided assembly load context
        // implementation.
        private static IntPtr ResolveUnmanagedDll(
            string unmanagedDllName,
            IntPtr gchManagedAssemblyLoadContext
            )
        {
            AssemblyLoadContext context = (AssemblyLoadContext)(
                GCHandle.FromIntPtr(gchManagedAssemblyLoadContext).Target
                ) !;

            return(context.LoadUnmanagedDll(unmanagedDllName));
        }
Exemple #2
0
        private static void MonoResolveUnmanagedDll(string unmanagedDllName, IntPtr gchManagedAssemblyLoadContext, ref IntPtr dll)
        {
            AssemblyLoadContext context = GetAssemblyLoadContext(gchManagedAssemblyLoadContext);

            dll = context.LoadUnmanagedDll(unmanagedDllName);
        }