I\'m trying to do a little Test-First development, and I\'m trying to verify that my classes are marked with an attribute:
[SubControllerActionToViewDataAttr
It is also possible to use generics on this:
var type = typeof(SomeType); var attribute = type.GetCustomAttribute();
This way you do not need another typeof(...), which can make the code cleaner.
typeof(...)