问题描述
很多的.Net面试问题列表(including在好的)包含了一个问题:什么是反射?。我最近被要求在5问题的情况下回答这个问题,技术测试旨在为在递给我在食堂空白纸张15分钟内完成。我的回答去沿线的思考可以让你发现任何对象的方法,属性和字段在运行时。回想起来,我的回答解释了如何使用反射,但它并不能说明什么反射。在我看来,我的回答足以传达我明白反射的的,但没有走得很远,说明什么反映的是
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 question, technical test designed to be completed in 15 minutes on a sheet of blank paper handed to me in a cafeteria. My answer went along the lines of "Reflection allows you to discover the Methods, Properties and Fields of any object at runtime". In retrospect, my answer explains how you can use reflection, but it does not explain what reflection is. In my view, my answer was sufficient to convey that I understand what reflection is for but didn't go so far as to explain what reflection is.
所以,请在.net中的情况下,在自己的简洁的话,定义什么反思的的是的。不要花超过三分钟回答。不要参阅的.NET文档,我们都看到了。
So please, in the context of .Net, in your own concise words, define what Reflection is. Don't spend more than three minutes answering. Don't refer to the .Net documentation, we've all seen it.
推荐答案
反思是查询和同类型系统以动态方式进行交互的能力。
Reflection is the ability to query and interact with the type system in a dynamic way.
这篇关于3分钟后,什么是反射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!