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(\"
If you just want one specific Attribute value For instance Display Attribute you can use the following code:
var pInfo = typeof(Book).GetProperty("Name") .GetCustomAttribute(); var name = pInfo.Name;