Reflection used to access attributes in program metadata - Csharp.Net

Q.  Reflection can be used when?
- Published on 31 Aug 15

a. To access attributes in your program's metadata
b. To create type at compile time
c. To access attributes at compile time.
d. None of the above

ANSWER: To access attributes in your program's metadata
 
Reflection is used toaccess attributes in your program's metadata. In .NET the metadata contains the type information of method, property, event, delegate, and enumeration. CLR use this metadata to load and execute code.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)