Sail E0 Webinar
Question
Choose the method defined by MemberInfo:
Options:
A .  GetCustomAttributes()
B .  IsDefined()
C .  GetCustomeAttributesData()
D .  All of the mentioned
Answer: Option D


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers