Reflection used to access attributes in program metadata - Csharp.Net
Q. Reflection can be used when?- Published on 31 Aug 15a. 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.