2 using System.Runtime.InteropServices;
6 static int static_field;
8 public static void Main ()
13 public long SimpleMethod (int a, double b) {
18 public interface Iface
24 public class OtherType
30 public class TypeWithFunkyStuff
32 const string contant_field = "333";
33 [MarshalAs (UnmanagedType.Struct)] int bla;
35 int[] z = new int[] {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
43 public class Bla : Iface
51 [StructLayout (LayoutKind.Sequential, Pack=8)]
52 public class SequentialLayout {
57 [StructLayout (LayoutKind.Sequential, Pack=4, Size=20)]
58 public class SequentialLayout2 {
62 [StructLayout (LayoutKind.Explicit)]
63 public class ExplicitLayout2 {
64 [FieldOffset (33)] int a;
65 [FieldOffset (0)] int b;
68 public class ZZ : Iface
74 public class Generic<T> {
78 public class NonGeneric {
80 public static object Bla ()
82 Generic<int> f = new Generic<int> ();
87 public class OuterType {
88 public class InnerType {}