In 3 minutes, What is Reflection?

前端 未结 12 1160
广开言路
广开言路 2020-12-02 10:33

Many .Net interview question lists (including the good ones) contain the question: \"What is Reflection?\". I was recently asked to answer this in the context of a 5 questio

12条回答
  •  遥遥无期
    2020-12-02 11:18

    Reflection is the CLR's awareness of code-level objects such class names, methods, etc. that is exposed via an API, namely System.Reflection, which allows a developer to leverage the runtime's cognizance of this information in their code.

    Rule violation: I've edited this answer from its original form for the sake of accuracy.

提交回复
热议问题