The missing TagAttribute in DotNet Framework

Wednesday, 27 February 2008 18:17 by Alan Mojab

For one strange reason I adore the Tag property. The Tag property has been around for as long as I remember.

I love practical things, so much so, I’d get so excited about them regardless how cheap or small they are. The Tag property is one of them. It always comes to your rescue and it never let you down.

The Attribute class in .Net Framework plays an important role and the developers can take advantage of this class to extend it for their own use. The extended attribute class normally is used for storing some kind of meta-data for types.

Imagine what you could have done if from day one or at least from Framework 1.1 Microsoft introduced a TagAttribute that looked something like the snippet below:

Quite often I could have solved design issues if the TagAttribute was part of the .Net framework itself rather than to distribute the extended version with my code. If you have noticed almost all protection tools would distribute one such attribute class so that you can mark a class to be ignored or to be processed.

Add comment


 

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

November 19. 2008 16:34