[Mono-dev] [PATCH] System.Type.FindMembers return type.
billholmes54 at gmail.com
Thu Nov 6 10:45:51 EST 2008
The attached patch changes FindMembers to instantiate the correct type
of array to be returned as a MemberInfo .
typeof (object).GetMember ("Dummy", MemberTypes.Method,
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3612 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081106/f81ee00f/attachment-0001.obj
More information about the Mono-devel-list