using System.Runtime.InteropServices;
public static void Main(string[] args)
var test = new MyStruct();
test.Other = new Other();
public void OtherMethod()
Console.WriteLine("Invoked OtherMethod" + this.GetType().Name);
Console.WriteLine("Invoked SomeMethod on " + this.GetType().Name + " with " + this.foo);
[StructLayout(LayoutKind.Explicit)]