Discussion :: Attributes
-
Which of the following statements are correct about Attributes used in C#.NET?
A.
If there is a custom attribute BugFixAttribute then the compiler will look ONLY for the BugFix attribute in the code that uses this attribute.
|
B.
To create a custom attribute we need to create a custom attribute structure and derive it from System.Attribute.
|
C.
To create a custom attribute we need to create a class and implement IAttribute interface in it.
|
D.
If a BugFixAttribute is to receive three parameters then the BugFixAttribute class should implement a zero-argument constructor.
|
E.
The CLR can change the behaviour of the code depending upon the attributes applied to it.
|
Answer : Option E
Explanation :
No answer description available for this question.
Be The First To Comment