Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C# Programming
»
Attributes
Which of the following are correct ways to specify the targets for a custom attribute?
By applying AttributeUsage to the custom attribute's class definition.
By applying UsageAttribute to the custom attribute's class definition.
Once an attribute is declared it applies to all the targets.
By applying AttributeUsageAttribute to the custom attribute's class definition.
None of the above.
Show Answer
Correct Answer:
By applying AttributeUsageAttribute to the custom attribute's class definition.
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment