In the previous recipe, we developed a custom attribute named
DefectTrackerAttribute. However, the attribute, by itself, does not do anything. Unless there is an application or library that looks at the class and members tagged/decorated by the attribute, it is just a piece of code that does nothing. So, in this recipe, we will see how to process the class tagged by
DefectTrackerAttribute using reflection.
CookBook.Recipes.Core.DefectTrackerproject in Add a folder to the project. Name it
using System.Reflection; using CookBook.Recipes.Core.DefectTracker.Attributes; ...