Search code examples
c#.netlinuxmacospinvoke

Is .NET PInvoke available on Linux and Mac OS X platforms?


Platform Invokation in .NET Framework available on Windows.

[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern MessageBoxResult MessageBox(IntPtr hWnd, String text, String caption, int options);

Is PInvoke available on Linux and Mac OS X platforms? for example for Mono project?

If Linux and Mac OS X supported PInvoke, Can you give me some example or references in your answer.

Thanks.


Solution

  • Interop with Native Libraries
    http://www.mono-project.com/Interop_with_Native_Libraries