早期绑定和后期绑定 [英] early binding and late binding

查看:77
本文介绍了早期绑定和后期绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我对这个编程世界很陌生,只是想学习一些东西.谁能向我解释早期绑定和晚期绑定的基本知识,以及它们之间的简短比较.

在此先谢谢您

hi everyone,
i am fresh to this programming world and just trying to learn the things. can anyone kindly explain me the basics of early binding and late binding plus a short comparision between them.

Thank you in advance

推荐答案

早期绑定:
该名称本身描述了编译器知道它是哪种对象,它包含的所有方法和属性.声明对象后,.NET Intellisense将在单击点按钮时填充其方法和属性.

后期绑定:
该名称本身描述了编译器不知道它是什么样的对象,它包含的所有方法和属性是什么.您必须将其声明为一个对象,稍后需要获取该对象的类型以及存储在其中的方法.一切都会在运行时知道.

有关更多信息,请参见:
http://www.c-sharpcorner.com/uploadfile/babu_2082/early -binding-vs-late-binding/ [ http://msdn.microsoft.com/en-us/library/0tcf61s1%28v = vs.80%29.aspx [ ^ ]
Early Binding :
The name itself describes that compiler knows about what kind of object it is, what are all the methods and properties it contains. As soon as you declared the object, .NET Intellisense will populate its methods and properties on click of the dot button.

Late Binding :
The name itself describes that compiler does not know what kind of object it is, what are all the methods and properties it contains. You have to declare it as an object, later you need get the type of the object, methods that are stored in it. Everything will be known at the run time.

for more refer:
http://www.c-sharpcorner.com/uploadfile/babu_2082/early-binding-vs-late-binding/[^]
http://msdn.microsoft.com/en-us/library/0tcf61s1%28v=vs.80%29.aspx[^]


请参阅以下内容:

http://www.geekinterview.com/question_details/45546 [ http://forums.asp.net/t/878480.aspx/1 [ ^ ]
Refer these:

http://www.geekinterview.com/question_details/45546[^]

http://forums.asp.net/t/878480.aspx/1[^]


查看这些链接
绑定概念
早期绑定和后期绑定
See these links
Concept of Binding
early binding and late binding


这篇关于早期绑定和后期绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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