2001-11-16 Miguel de Icaza <miguel@ximian.com>
[mono.git] / mcs / mcs / typemanager.cs
index ab0358b5c3310c2ff406f61dcdf3946734784ac3..10b45ca79380d43dd46ca822c55e1c7c4c1a9665 100755 (executable)
@@ -72,7 +72,8 @@ public class TypeManager {
        static public MethodInfo void_monitor_enter_object;
        static public MethodInfo void_monitor_exit_object;
        static public MethodInfo void_initializearray_array_fieldhandle;
-
+       static public MethodInfo int_getlength_int;
+       
        //
        // The attribute constructors.
        //
@@ -434,6 +435,13 @@ public class TypeManager {
                void_initializearray_array_fieldhandle = GetMethod (
                        runtime_helpers_type, "InitializeArray", array_field_handle_arg);
 
+               //
+               // Array functions
+               //
+               Type [] int_arg = { int32_type };
+               int_getlength_int = GetMethod (
+                       array_type, "GetLength", int_arg);
+               
                //
                // Attributes
                //