Tag: Native Interop
-
How to Turn C# into a Native DLL with Native AOT - Calling UnmanagedCallersOnly Exports from C/C++
A practical guide to publishing a C# class library as a native DLL with Native AOT and exposing UnmanagedCallersOnly entry points that can be called from C o...
-
Why a C++/CLI Wrapper Is Often the Best Way to Use a Native DLL from C# - A Practical Comparison with P/Invoke
When calling a native DLL from C#, there are cases where P/Invoke is enough and cases where a thin C++/CLI wrapper becomes the cleaner option. This article o...