Geeks With Blogs
Simon Cooper Peering into the depths of .NET August 2012 Entries
Inside the DLR - Invoking methods
So, we've looked at how a dynamic call is represented in a compiled assembly, and how the dynamic lookup is performed at runtime. The last piece of the puzzle is how the resolved method gets invoked, and that is the subject of this post. Invoking methods As discussed in my previous posts, doing a full lookup and bind at runtime each and every single time the callsite gets invoked would be far too slow to be usable. The results obtained from the callsite binder must to be cached, along with a series ......

Posted On Monday, August 20, 2012 7:51 PM

Inside the DLR – Callsite binders
So, we've looked at how the C# compiler produces a CallSite object for every dynamic call that is made, and provides it with everything it needs to resolve the call at runtime. How is this information used when the callsite is invoked? To create a CallSite object, you need to pass in an instance of CallSiteBinder, which performs the member lookup and binding of a dynamic call for the callsite. Each language has its own binder, and C#'s binder lives in the Microsoft.CSharp.dll assembly. If you have ......

Posted On Friday, August 3, 2012 10:56 AM

Copyright © simonc | Powered by: