// Compile: // gmcs -unsafe sumWrapper.cs // Execute: // mono sumWrapper.exe // ----------------------------------------------------------------------------- using System; using System.Runtime.InteropServices; public class Tester { [DllImport ("libsum.so", EntryPoint="sum")] static unsafe extern int sum(int *p, int n); unsafe static void Main () { int []arr = new int[10]; for (int i = 0; i