2 using System.Reflection;
6 public static int Test<T> (T[] t)
8 // Has to include readonly. prefix
9 return t[0].GetHashCode ();
12 public static int TestExtra<T> (T[,] t)
14 // Has to include readonly. prefix
15 return t[0, 0].GetHashCode ();
18 public static int Main ()
20 Test (new[] { 2.1, 4.5 });
23 var body = typeof (C).GetMethod ("Test").GetMethodBody ();
25 // Check for readonly. (0xFE1E)
26 var array = body.GetILAsByteArray ();