Skip to content

Commit 3bed6fd

Browse files
committed
Undo the previous fix to ParameterInfo.GetCustomAttributes
There is a better change in RuntimeParameterInfo.cs to address this.
1 parent 2ddd35a commit 3bed6fd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mcs/class/corlib/System/MonoCustomAttrs.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ internal static object[] GetCustomAttributes (ICustomAttributeProvider obj, Type
183183
if (inherit && GetBase (obj) == null)
184184
inherit = false;
185185

186-
if (obj is RuntimeParameterInfo)
187-
inherit = false;
188-
189186
// if AttributeType is sealed, and Inherited is set to false, then
190187
// there's no use in scanning base types
191188
if ((attributeType != null && attributeType.IsSealed) && inherit) {

0 commit comments

Comments
 (0)