explain the different services provided by dlr to


Explain the different services provided by DLR to CLR.

The services given by DLR to CLR are used for supporting dynamic languages. These services include the following:

Expression Trees - Refers to the representation of code in a data structure same to a tree. Though, expression trees in DLR are the advanced version of the expression trees that were introduced with LINQ in .NET 3.5. Thus, DLR has extended the functionalities of Language Integrated Query (LINQ) expression trees, such as control flow, assignment, and other language-modeling nodes to a dynamic language. These expression trees explain the semantics of a language in form of an abstract syntax tree (AST). AST enables the DLR to dynamically generate code, which the CLR implements at runtime.

Call Site Caching - Enables the DLR to store the information of the operations and characteristics of the variables, like their data type. The call site caching services also enables to check whether such operations have been performed previously to retrieve all the information about the variable. The place where DLR keeps these values is called a call site.

Dynamic Object Interoperability - Enables the DLR to give a set of classes and interfaces that represent dynamic objects and operations. These classes and interfaces can be used to make classes for dynamic libraries, which can be used in static and dynamic type languages.

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: explain the different services provided by dlr to
Reference No:- TGS0311185

Expected delivery within 24 Hours