Programming Languages C# Objective
Mar 07, 2013

Which are correct ways to specify the targets for a custom attribute?

Choose the correct answer:
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.
Detailed Explanation

Option D is the right answer.

 

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback