1.

Which feature enables to obtain information about the use and capabilities of types at runtime?(a) Runtime type ID(b) Reflection(c) Attributes(d) None of the mentionedThis question was addressed to me in an interview for internship.Origin of the question is Introduction of Reflections in portion Reflections, Multithreaded Programming, Collection Classes and Mathematical Functions of C#

Answer»

Right option is (b) Reflection

Explanation: Reflection is the feature that enables you to OBTAIN INFORMATION about a TYPE. The term reflection comes from the way the process works: A Type OBJECT mirrors the underlying type that it represents. Reflection is a powerful mechanism because it allows US to learn and use the capabilities of types that are known only at runtime.



Discussion

No Comment Found

Related InterviewSolutions