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

            Console.WriteLine($"NativeEntryPoint returned: {res}");
        }
예제 #2
0
파일: Program.cs 프로젝트: dotnet/samples
 static void CallPInvoke()
 {
     Console.WriteLine($"=== P/Invoke ===");
     MixedLibrary.NativeEntryPoint_CallNative("from managed app!");
     Console.WriteLine();
 }