[Mono-devel-list] Little patch for TypeBuilder.DefineGenericParameters
Martin Baulig
martin at ximian.com
Tue Jan 18 01:09:15 EST 2005
Hi,
patch looks good, please commit.
Martin
On Sat, 2005-01-15 at 21:19 +0100, Kamil Skalski wrote:
> Hi!
>
> According to http://msdn2.microsoft.com/library/9yacbtef.aspx
> DefineGenericParameters has signature public GenericTypeParameterBuilder[]
> DefineGenericParameters (string[] names), but in MS.NET 2.0Beta1 it seems to
> have 'params' keyword, because DefineGenericParameters ("a", "b") works.
> The same goes to MethodBuilder.DefineGenericParameters.
>
> Here is the patch to correct it in mono:
>
> Index: class/corlib/System.Reflection.Emit/MethodBuilder.cs
> ===================================================================
> --- class/corlib/System.Reflection.Emit/MethodBuilder.cs (revision
> 38569)
> +++ class/corlib/System.Reflection.Emit/MethodBuilder.cs (working copy)
> @@ -376,7 +376,7 @@
> return result;
> }
>
> - public GenericTypeParameterBuilder[] DefineGenericParameters
> (string[] names)
> + public GenericTypeParameterBuilder[] DefineGenericParameters
> (params string[] names)
> {
> generic_params = new GenericTypeParameterBuilder
> [names.Length];
> for (int i = 0; i < names.Length; i++)
> Index: class/corlib/System.Reflection.Emit/TypeBuilder.cs
> ===================================================================
> --- class/corlib/System.Reflection.Emit/TypeBuilder.cs (revision 38569)
> +++ class/corlib/System.Reflection.Emit/TypeBuilder.cs (working copy)
> @@ -1383,7 +1383,7 @@
> }
> }
>
> - public GenericTypeParameterBuilder[] DefineGenericParameters
> (string[] names)
> + public GenericTypeParameterBuilder[] DefineGenericParameters
> (params string[] names)
> {
> setup_generic_class ();
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
More information about the Mono-devel-list
mailing list