1 // Compiler options: -optimize
4 using System.Reflection;
8 public static int Test<T> (T[] t)
10 // Has to include readonly. prefix
11 return t[0].GetHashCode ();
14 public static int TestExtra<T> (T[,] t)
16 // Has to include readonly. prefix
17 return t[0, 0].GetHashCode ();
20 public static int Main ()
22 Test (new[] { 2.1, 4.5 });
25 var body = typeof (C).GetMethod ("Test").GetMethodBody ();
27 // Check for readonly. (0xFE1E)
28 var array = body.GetILAsByteArray ();