[Mono-devel-list] Little patch for TypeBuilder.DefineGenericParameters
Kamil Skalski
nazgul at nemerle.org
Tue Jan 18 03:18:19 EST 2005
Dnia wtorek, 18 stycznia 2005 07:09, Martin Baulig napisał:
> Hi,
>
> patch looks good, please commit.
>
Please somebody commit it, because I don't have svn rw access in mono.
Thanks.
Kamil
> 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
>
> _______________________________________________
> 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