* MethodBuilder.cs: Mono allows the parameter position to be zero
to indicate the "returns:" attribute.
svn path=/trunk/mcs/; revision=14085
+2003-04-28 Miguel de Icaza <miguel@ximian.com>
+
+ * MethodBuilder.cs: Mono allows the parameter position to be zero
+ to indicate the "returns:" attribute.
+
2003-04-20 Miguel de Icaza <miguel@ximian.com>
* ILGenerator.cs (EmitCall): Implement.
[MonoTODO]
public ParameterBuilder DefineParameter (int position, ParameterAttributes attributes, string strParamName)
{
- if ((position < 1) || (position > parameters.Length))
+ //
+ // Extension: Mono allows position == 0 for the return attribute
+ //
+ if ((position < 0) || (position > parameters.Length))
throw new ArgumentOutOfRangeException ("position");
RejectIfCreated ();