From 17a7b6d602ec4e0bf39078a3a9a03ef71d65cf10 Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Tue, 30 Jun 2026 21:02:59 +0200 Subject: Add C hello library with P/Invoke from Baz --- baz/Baz.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'baz/Baz.cs') diff --git a/baz/Baz.cs b/baz/Baz.cs index f3b017f..df4dd96 100644 --- a/baz/Baz.cs +++ b/baz/Baz.cs @@ -1,9 +1,14 @@ using System; +using System.Runtime.InteropServices; public class Baz { + [DllImport("hello_c")] + private static extern void hello_c(); + public static void Print() { Console.WriteLine("Baz"); + hello_c(); } } -- cgit v1.2.3