PropertyInfo.GetCustomAttributes() Doesn’t Return Inherited Attributes

Here’s a problem I ran into today. If you have an attribute on the property of a base class; are you able to read it via PropertyInfo.GetCustomAttributes on the properties of a subclass. Here’s where it helps to read the fine print. PropertyInfo.GetCustomAttributes takes a parameter for ‘inherit’ – yet the reference for PropertyInfo contains […]