2 using System
.Reflection
;
4 public struct Container
<T
>
8 public Container (T content
)
10 this.content
= content
;
16 public Container
<long> field
;
20 field
= new Container
<long> (0xdeadbeaf);
26 public static int Main()
30 if (a
.field
.content
!= 0xdeadbeaf)
33 FieldInfo fi
= a
.GetType().GetField("field");
34 object o
= fi
.GetValue (a
);
35 Container
<long> unboxed
= (Container
<long>) o
;
37 if (unboxed
.content
!= 0xdeadbeaf)