C# Programming - Attributes - Discussion
Discussion Forum : Attributes - General Questions (Q.No. 2)
2.
Which of the following are correct ways to specify the targets for a custom attribute?
Discussion:
2 comments Page 1 of 1.
Hema said:
3 years ago
A is the right answer, as well as Attribute suffix, can be eliminated.
K2u2007 said:
1 decade ago
AttributeUsage attribute specifies the types of items to which an attribute can be applied.
AttributeUsage is another name for the System.AttributeUsageAttribute class. AttributeUsage has the following constructor:
AttributeUsage(AttributeTargets validOn)
AttributeUsage is another name for the System.AttributeUsageAttribute class. AttributeUsage has the following constructor:
AttributeUsage(AttributeTargets validOn)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers