#endif
[ClassInterface (ClassInterfaceType.None)]
public class ParameterBuilder : _ParameterBuilder {
- private MethodBase methodb; /* MethodBuilder or ConstructorBuilder */
+ private MethodBase methodb; /* MethodBuilder, ConstructorBuilder or DynamicMethod */
private string name;
private CustomAttributeBuilder[] cattrs;
private UnmanagedMarshal marshal_info;
position = pos;
attrs = attributes;
methodb = mb;
- table_idx = mb.get_next_table_index (this, 0x08, true);
+#if NET_2_0
+ if (mb is DynamicMethod)
+ table_idx = 0;
+ else
+#endif
+ table_idx = mb.get_next_table_index (this, 0x08, true);
}
public virtual int Attributes {