Saved Bookmarks
| 1. |
Choose the method defined by MemberInfo.(a) GetCustomAttributes()(b) IsDefined()(c) GetCustomeAttributesData()(d) All of the mentioned |
|
Answer» The correct option is (d) All of the mentioned Best 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. |
|