PageRenderTime 14ms CodeModel.GetById 8ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/Test/Resources/cs/Layouts.cs

http://github.com/jbevain/cecil
C# | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | 7bdd5f1a8c84593f1ef7e28f638afa5d MD5 | raw file
 1using System;
 2using System.Runtime.InteropServices;
 3
 4[StructLayout (LayoutKind.Explicit, Size = 16)]
 5public struct Foo {
 6	[FieldOffset (0)] public ushort Bar;
 7	[FieldOffset (2)] public ushort Baz;
 8	[FieldOffset (4)] public uint Gazonk;
 9}
10
11class Babar {
12}
13
14class Locke {
15	public int [] integers = new int [] { 1, 2, 3, 4 };
16}