Monday, September 27, 2004

All you wanted to know about late binding in VB.NET (and probably more than that)

I came across this blog post by a former Visual Basic Compiler developer which talks all about how late binding is accomplished in Visual Basic as it happens now in .NET.
http://blogs.msdn.com/cambecc/archive/2004/06/01/145309.aspx
Revealing, isn't it? yeah..I thought so too (although at first it was more confusing than revealing :-S) It does give a pretty good insight into what goes on (which apparently is a whole lot!) behind late binding in Visual Basic. From there I was led to this blog post:
http://blogs.msdn.com/cambecc/archive/2004/06/27/166868.aspx
Here, Cameron Beccario - the guy who wrote the first blog post as well - lays out an abstract specification for Visual Basic late binding. Its kinda big but I guess it makes sense since that's what the purpose of the post is - to lay out in detail a specification for various late binding scenarios. Beware - might take a while to get through the whole thing :)
After reading both these posts, you can pretty much tell why late binding incurs such a performance hit as compared to early binding. Gives you something to think about when using late binding..Ofcourse, with Option Strict On, VB.NET throws up a compile time error when using late binding which does help a lot. It would be an issue only with Option Strict Off.

1 Comments:

At February 23, 2006 1:10 PM, Blogger aman said...

good shared
hashim azmi

 

Post a Comment

<< Home