Exemple #1
0
        // P/Invoke - goes through InMemoryAssemblyLoader
        static void CallPInvoke()
        {
            Console.WriteLine($"=== {nameof(CallPInvoke)} ===");
            int res = MixedLibrary.NativeEntryPoint(10);

            Console.WriteLine($"NativeEntryPoint returned: {res}");
        }
Exemple #2
0
 static void CallPInvoke()
 {
     Console.WriteLine($"=== P/Invoke ===");
     MixedLibrary.NativeEntryPoint_CallNative("from managed app!");
     Console.WriteLine();
 }