2011-07-23 101 views
5

Windows上可用的.NET Framework平臺Invokation。.NET PInvoke是否可在Linux和Mac OS X平臺上使用?

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

在Linux和Mac OS X平臺上可以使用PInvoke嗎?例如Mono項目?

如果Linux和Mac OS X支持PInvoke,你可以給我一些例子或參考答案。

謝謝。

回答