Possible Duplicate:
Finding all classes with a particular attribute
In an assembly I would like to get all instances of a particular class attribute. In other words I would like to have the list of classes that have a specific attribute.
Normally you would have a class for which you can fetch the attribute using the GetCustomAttributes method.
Is it possible to have a list of who has a particular attribute?
Or:
Linq VS my method benchmark (100000 iterations):
Benchmark code: