Add C# P/INVOKE wrapper and client/server example

This commit is contained in:
Joseph Henry
2021-01-04 21:03:57 -08:00
parent a8c757eaff
commit 4122110cea
12 changed files with 3013 additions and 1 deletions

12
examples/csharp/Makefile Normal file
View File

@@ -0,0 +1,12 @@
debug:
cd ../../ && make host_pinvoke_debug
cp -f ../../lib/debug/linux-x86_64/libzt.so .
mono-csc -out:example.exe *.cs
release:
cd ../../ && make host_pinvoke_release
cp -f ../../lib/release/linux-x86_64/libzt.so .
mono-csc -out:example.exe *.cs
clean:
rm -rf libzt.* example.exe