[Mono-dev] [patch] Fixing the «crazy inheritance chain walking» for parameters custom attributes
kumpera at gmail.com
Tue Dec 1 21:18:43 EST 2009
The patch looks good, my only concern is how does it interact with UT
Do you mind testing MS behavior with non system ParamInfo objects?
On Tue, Dec 1, 2009 at 10:30 PM, Jb Evain <jb at nurv.fr> wrote:
> When using the static methods Attribute.IsDefined or
> Attribute.GetCustomAttributes on a ParameterInfo that is defined on a
> virtual method, those methods are supposed to be walking the
> inheritance chain to collect the attributes over the different
> parameter definitions.
> This patch adds support for this behavior. So far, we were only
> dealing with the parameters defined on the current parameter. Now I
> simply added a new internal method GetBaseMethod on MethodInfo that am
> using to walk down the hierarchy.
> Please review.
> Jb Evain <jb at nurv.fr>
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list