internal Type corlib_value_type = typeof (System.ValueType);
internal Type corlib_enum_type = typeof (System.Enum);
private int[] table_indexes;
- internal ArrayList methods;
Hashtable us_string_cache = new Hashtable ();
[MethodImplAttribute(MethodImplOptions.InternalCall)]
table_indexes [0x02] = 2;
}
// Console.WriteLine ("getindex for table "+table.ToString()+" got "+table_indexes [table].ToString());
- if (inc) {
- if ((table == 0x06) && (methods != null))
- methods.Add (obj);
+ if (inc)
return table_indexes [table]++;
- }
return table_indexes [table];
}
+2003-02-09 Martin Baulig <martin@ximian.com>
+
+ * AssemblyBuilder.cs (AssemblyBuilder.methods): Removed. This was
+ a hack for the symbol writer which is no longer needed.
+
2003-02-09 Martin Baulig <martin@ximian.com>
* IMonoSymbolWriter.cs (DefineNamespace, OpenMethod): New methods.
if (type == null)
return;
- if (assemblyb.methods == null)
- assemblyb.methods = new ArrayList ();
-
// First get the constructor.
{
Type[] arg_types = new Type [2];
arg_types [0] = typeof (ModuleBuilder);
- arg_types [1] = typeof (ArrayList);
ConstructorInfo constructor = type.GetConstructor (arg_types);
- object[] args = new object [2];
+ object[] args = new object [1];
args [0] = this;
- args [1] = assemblyb.methods;
if (constructor == null)
return;