Mono has the ability to integrate with native libraries from C #, built on top of dlopen (3). You just need to use the DllImport statement with the library name (ie, "Libform.so.5"), and then wrap your own code and data types with a friendly C # class that will serve all low-level materials. This page contains a good overview with lots of information on how to deal with marshaling pointers and other unsafe types.
Once you have written your wrapper class, you can simply use this without worrying that it uses the built-in shared library below.
source
share