[Mono-dev] [patch] Fixing the «crazy inheritance chain walking» for parameters custom attributes

Rodrigo Kumpera 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
supplied methods?

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:

> Hey,
> 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
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091202/e6dd1936/attachment.html 

More information about the Mono-devel-list mailing list