Home / C# Programming / Attributes :: Discussion

Discussion :: Attributes

  1. Which of the following are correct ways to specify the targets for a custom attribute?

  2. 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.

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment