views:

84

answers:

3

MSDN states that

you do not need to specify the attribute suffix when using attributes in code

Example: You have an attribute named HelpAttribute. You can decorate a property with [Help] (no Attribute suffix) or with [HelpAttribute]; either is allowable. But, does the code run faster when you use the full attribute name rather than the non-suffixed name?

+5  A: 

There is no difference, its a syntax feature to save you typing Attribute all the time.

Adam
+11  A: 

The code compiles down to the exact same IL and has 0 runtime performance difference.

JaredPar
+2  A: 

it is a compiler feature, result IL will be the same

desco