The "as RuntimeType as RuntimeType" cast was redundant here - noticed this when digging into other issues. I couldn't trace how far back this goes due to file moves, but full framework has the same code issue.
#region ICustomAttributeProvider
public override object[] GetCustomAttributes(bool inherit)
{
- return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType as RuntimeType, inherit);
+ return CustomAttribute.GetCustomAttributes(this, typeof(object) as RuntimeType, inherit);
}
public override object[] GetCustomAttributes(Type attributeType, bool inherit)