Question: Which of the following are correct ways to specify the targets for a custom attribute?

Options

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.

Click to view Correct Answer

Previous || Next

Attributes - General Questions more questions

Which of the following statements is correct about the C#.NET....

Which of the following is the correct way to define....

Which of the following is the correct way to obtain....

What will be the output of the C#.NET code snippet....

The [Serializable()] attribute gets inspected at

Which of the following are correct ways to pass a....

Which of the following statements are correct about inspecting an....

Which of the following is correct ways of applying an....

Which of the following forms of applying an attribute is....

Which of the following statements are correct about Attributes in....

Attributes - General Questions more Online Exam Quiz

Strings - General Questions

Classes and Objects - General Questions

Collection Classes - General Questions

Constructors - General Questions

Datatypes - General Questions

Delegates - General Questions