This is a mirror of official site: http://jasper-net.blogspot.com/

How Dynamic Language Runtime(DLR) feature in .NET Framework 4 is a boon for debugging COM objects

| Wednesday, March 9, 2011
The dynamic language runtime (DLR) is a new runtime environment that adds a set of services for dynamic languages to the CLR. For more details regarding new features of .NET Framework 4 please read New C# Features in the .NET Framework 4 and What’s New in the .NET Framework 4

In this blog I’ll show how this feature can make life easy while developing/debugging COM applications and compare the same COM application running in frameworks prior to .NET Framework 4.

I’ll compare how easy it is to debug a Word Addin in .NET Framework 4 than frameworks prior to it e.g. .NET Framework 3.5.

As displayed below I’ve the screenshot from VS 2008(.NET Framework 3.5) Quickwatch window

image_thumb%5B15%5D.png?imgmax=800

...
...

When the Watch window displays an object that implements the IDynamicMetaObjectProvider. interface, the debugger adds a special Dynamic View node to the watch display. The Dynamic View node shows members of the dynamic object but does not allow editing of the member values. For more information please read Dynamic View

Now I can view the item(ComAddin in this example) at index 1 of COMAddins object in .NET Framework 4 because of DLR as displayed below

image_thumb%5B22%5D.png?imgmax=800

Read more: Daily .NET Tips

Posted via email from Jasper-net

0 comments: