Discussion :: Attributes
-
Which of the following are correct ways to specify the targets for a custom attribute?
A.
By applying AttributeUsage to the custom attribute's class definition.
|
B.
By applying UsageAttribute to the custom attribute's class definition.
|
C.
Once an attribute is declared it applies to all the targets.
|
D.
By applying AttributeUsageAttribute to the custom attribute's class definition.
|
E.
None of the above.
|
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment