3分钟后,什么是反射? [英] In 3 minutes, What is Reflection?

查看:161
本文介绍了3分钟后,什么是反射?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

很多的.Net面试问题列表(<一href="http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNETInterviewQuestions.aspx">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分钟后,什么是反射?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆