2 using System.Runtime.InteropServices;
3 using System.Runtime.CompilerServices;
7 public virtual object MyClone ()
14 public class Test : T {
16 [MethodImplAttribute(MethodImplOptions.InternalCall)]
17 public override extern object MyClone ();
19 delegate int MyDelegate (string name);
21 [DllImport ("libtest", EntryPoint="mono_test_puts_static")]
22 public static extern int puts_static (string name);
24 public static int Main () {
25 puts_static ("A simple Test for PInvoke 1");
27 MyDelegate d = new MyDelegate (puts_static);
28 d ("A simple Test for PInvoke 2");
30 object [] args = {"A simple Test for PInvoke 3"};
31 d.DynamicInvoke (args);