Solution: Custom attribute
- To create a custom attribute, you create a public class and then inherit from the attribute base class. For this example you were asked to create the test method attribute. This is using the Microsoft naming convention where they always append the word attribute on the end of the class. It's an empty class, it doesn't have any members yet. We'll add some members in the next couple of challenges. So once I have this class, then I can use the syntax, the attribute syntax I should say. So here I apply the test method to the update value method and I also apply it to the check inventory method. And then when you run the code you can see that it shows the collectible card methods. So the first two have the test attribute applied and the validate check sum does not.