// P/Invoke - goes through InMemoryAssemblyLoader static void CallPInvoke() { Console.WriteLine($"=== {nameof(CallPInvoke)} ==="); int res = MixedLibrary.NativeEntryPoint(10); Console.WriteLine($"NativeEntryPoint returned: {res}"); }
static void CallPInvoke() { Console.WriteLine($"=== P/Invoke ==="); MixedLibrary.NativeEntryPoint_CallNative("from managed app!"); Console.WriteLine(); }