| 1 | using System; |
| 2 | using System.Runtime.InteropServices; |
| 3 | |
| 4 | [StructLayout (LayoutKind.Explicit, Size = 16)] |
| 5 | public struct Foo { |
| 6 | [FieldOffset (0)] public ushort Bar; |
| 7 | [FieldOffset (2)] public ushort Baz; |
| 8 | [FieldOffset (4)] public uint Gazonk; |
| 9 | } |
| 10 | |
| 11 | class Babar { |
| 12 | } |
| 13 | |
| 14 | class Locke { |
| 15 | public int [] integers = new int [] { 1, 2, 3, 4 }; |
| 16 | } |