In Groovy ConfigSlurper is a utility class that is used for reading configuration files written in form of Groovy scripts.Let’s consider the following properties file. We will use a Groovy script to read from this properties file as shown in the snippet below: This is a very simple piece of code which makes use of [...]
Posts Tagged ‘Dynamic’
In my last couple of posts I had discussed about the new dynamic keyword introduced in C# 4.0 and the how the DLR integrates with CLR to provide the dynamic programming services.In this post I will discuss about the System.Dynamic.DynamicObject class and how we can implement dynamic receivers in C#.Dynamic Receivers allows the client code [...]
In the last two posts we have discussed about dynamic languages and how DLR allows dynamic languages to run on CLR.In this post we will take a look into the new “dynamic” type in C# and how it works internally. Let us take a look into the following lines of code:
In my last post I have covered the basics of dynamic languages and now we will see how this dynamic languages fit into the CLR.The core purpose of CLR was to host code written in multiple programming languages.But traditionally it had support for the static languages only.Dynamic Language Runtime (DLR) was conceived as a set [...]
The “dynamic” is the new keyword introduced in C# in version 4.0.This adds some kind dynamic capabilities in this statically typed language.But before getting into the details of how this new keyword will be used and what are it’s implication I would prefer to take a quick look into what are dynamic languages, duck typing [...]

