Services by DLR to CLR

Explain about the different services provided by the DLR to CLR.

E

Expert

Verified

The services provided by DLR to CLR used for supporting dynamic languages are as following:

a) Expression Trees – It refers to the demonstration of the code in a data structure like a tree. Though, expression trees in the DLR are advanced version of the expression trees which were introduced with the LINQ in .NET 3.5. Therefore, DLR has extended the functionalities of Language Integrated Query (LINQ) expression trees, like, assignment, control flow, and other language-modeling nodes to a dynamic language. These expression trees describe the semantics of the language in the form of an abstract syntax tree (AST). AST allows the DLR to dynamically generate the code, which CLR executes at runtime.

b) Call Site Caching - It enables DLR in order to store the information of operations and characteristics of the variables, for example: their data type. Call site caching services also facilitates to check if such operations have been performed previously in order to retrieve all the information about the variable. Place where DLR stores these values is called a call site.

c) Dynamic Object Interoperability – It allows the DLR in order to provide a set of classes and interfaces which represent the dynamic objects and the operations. These classes and the interfaces may be used in order to create the classes for the dynamic libraries, that can be used in static and dynamic type languages.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.