DEV Community

Discussion on: Value-Based Attributes in C#

 
zacharypatten profile image
Zachary Patten

Another user sugguested TagAttribute so a use case would be [Tag("Name", "My Name")] and the extension method could just be GetTag rather than GetTagAttribute as GetTag is probably clear enough what it is doing. I think I decided to go with that and will update the code and this article when available.