Imported Upstream version 6.12.0.154

Former-commit-id: 4110a97c739003f763b0c5b8a1561339cda7cda3
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2021-09-03 21:58:24 +00:00
parent cb227eef93
commit 4651b7ea22
53 changed files with 765 additions and 757 deletions

View File

@ -192,14 +192,20 @@ namespace System.Reflection
override
object[] GetCustomAttributes (bool inherit)
{
return MonoCustomAttrs.GetCustomAttributes (this, inherit);
// It is documented that the inherit flag is ignored.
// Attribute.GetCustomAttributes is to be used to search
// inheritance chain.
return MonoCustomAttrs.GetCustomAttributes (this, false);
}
public
override
object[] GetCustomAttributes (Type attributeType, bool inherit)
{
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, inherit);
// It is documented that the inherit flag is ignored.
// Attribute.GetCustomAttributes is to be used to search
// inheritance chain.
return MonoCustomAttrs.GetCustomAttributes (this, attributeType, false);
}
internal object GetDefaultValueImpl (ParameterInfo pinfo)