[Mono-dev] [PATCH] System.Type.FindMembers return type.
Miguel de Icaza
miguel at novell.com
Thu Nov 6 13:19:47 EST 2008
Hello
I am ok with this patch.
> Hi,
>
> The attached patch changes FindMembers to instantiate the correct type
> of array to be returned as a MemberInfo [].
>
> Basically
>
> typeof (object).GetMember ("Dummy", MemberTypes.Method,
> BindingFlags.Public).GetType ();
>
> Should be a MethodInfo [] and not a MemberInfo [].
>
> I have also added a test for this.
>
> 2008-11-06 Bill Holmes <billholmes54 at gmail.com>
>
> * Type.cs (FindMembers): Changing the instantiated type of the
> returned MemberInfo array to match the MemberTypes flag
> passed in argument 1.
>
> * TypeTest.cs: TypeGetMemberReturnTypeTest added to check that the
> instantiated type of the returned MemberInfo array matches the
> MemberTypes flag passed in.
>
> Contributed under MIT/X11 license.
>
> thanks
> -bill
> _______________________________________________
> 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