Choose the method defined by MemberInfo:
A. GetCustomAttributes()
B. IsDefined()
C. GetCustomeAttributesData()
D. All of the mentioned
Answer:A
Choose the method defined by MemberInfo:
A. GetCustomAttributes() B. IsDefined() C. GetCustomeAttributesData() D. All of the mentioned
Explanation: MemberInfo includes two abstract methods: GetCustomAttributes( ) and IsDefined( ). These both relate to attributes. The first obtains a list of the custom attributes associated with the invoking object. The second determines if an attribute is defined for the invoking object. The .NET Framework Version 4.0 adds a method called GetCustomAttributesData(), which returns information about custom attributes