I have a class, lets call it Book with a property called Name. With that property, I have an attribute associated with it.
public class Book { [Author(\"
You can use GetCustomAttributesData() and GetCustomAttributes():
var attributeData = typeof(Book).GetProperty("Name").GetCustomAttributesData(); var attributes = typeof(Book).GetProperty("Name").GetCustomAttributes(false);