C# Programming - Attributes - Discussion

Discussion Forum : Attributes - General Questions (Q.No. 15)
15.
Attributes can be applied to
  1. Method
  2. Class
  3. Assembly
  4. Namespace
  5. Enum
1 and 2 only
1, 2 and 3
4 and 5 only
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Abcd said:   1 decade ago
This isn't correct, for example the FlagsAttribute can be applied to an enum.

Pratyusha said:   1 decade ago
Can attributes be applied to member variables?

Post your comments here:

Your comments will be displayed after verification.