Reflection – get attribute name and value on property
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(“AuthorName”)] public string Name { get; private set; } } In my main method, I’m using reflection and wish to get key value pair of each attribute for … Read more