查找msdn
应该是自己写的一个函数吧~~~
应该是自己写的一个函数吧~~~
解决方案 »
- 江湖救急!!!!!关于服务器端控件,有没有超大容量的。
- 小男子跪求带代码高亮显示的FCK控件一份
- 简单的Attribute问题
- 菜鸟问:DataGrid问题!!急!各位大哥大姐帮忙!
- 有谁用过asp.net forum2.0的框架开发过项目,我想问问这个框架适合一个普通网站开发吗?
- 请问哪里可以下载好的TAB控件?
- 思归老大在不?treeview显示+,-和树行线条的问题!!
- 为什么在redirect一个aspx页面时,unload事件也会执行,难道不是在aspx关闭时才执行吗?
- 结分真的那么费劲吗?再送66分
- 未通过Sys.UI.DomEvent.addHandler方法添加处理程序
- 大年初一遇到难题,,帮一把呀,,vs.net2003+dream weaver结合的问题。用过的进来。。来的有分~~
- 有关上传图片后修改其内容的问题..
就是不知道怎么解释 参考以下网址
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchmicrosoftvisualbasicnetinternals.aspLate Binding
Late binding is the process of matching an Object variable to the implementation of the type of object it references at run time. All languages that support the .NET Framework can support late binding by using System.Object variables and methods from the System.Reflection namespace for invoking object members. Visual Basic .NET provides implicit support for late binding by allowing you to write code as if objects were early bound. The compiler generates IL to use Visual Basic Runtime features that do the reflection work for you. Consider the following call to the Show method of an instance of Form1, which derives from System.Windows.Forms.Form:Dim o As Object
o = New Form1()
o.Show()
The IL generated by the compiler is a single (though expensive) method call:call void [Microsoft.VisualBasic]Microsoft.VisualBasic.CompilerServices.LateBinding::LateCall(object,
class [mscorlib]System.Type,
string,
object[],
string[],
bool[])
Late binding consumes significantly more resources than early binding (locating implementation at compile time) since the common language runtime is forced to perform type checking and member lookup at run time. However, late binding provides benefits that make it extremely useful in many situations. Consider an application that automates the printing of files and keeps a log of each file printed. The files may be Word documents, Excel spreadsheets, or some other type of file. Rather than recoding the same logic for each type of file, or requiring objects to implement the same interface (which you may not be able to do if you are not the author of the objects) you could use one method (for example, PrintOutAndLog) that takes an Object as a parameter and calls the object's PrintOut method. The application can be extended to use object models for any file type—as long as there is a PrintOut method, PrintOutAndLog can print the file. The PrintOutAndLog method can be placed in a class (or module) in its own source file with Option Strict Off to allow late binding. The rest of your application can then use Option Strict On to prevent late binding in other files. Refer to the section Use Option Strict On for more details on Option Strict.Recommendation: Late binding should not be used in most applications, but you should use Visual Basic's implicit late binding for scenarios where you would otherwise have to write reflection code.