DLR

DynamicObject: AOP for the poor

Posted on by osmirnov Posted in .NET, DLR, Patterns | 4 Comments

Use of AOP without help of third-party frameworks is difficult and often all of their functionality is not needed. In this post I want to share an interesting example of how I replaced AOP in its typical problem for a dynamic type.
Read more

Non direct calls (Part II): Replacing reflection

Posted on by osmirnov Posted in .NET, DLR | 2 Comments

I would like to call the post as “How to stop using the reflection and start programming”. This title is most accurately reflects essence of this post. In it we consider alternatives to the reflection. Very often they are the only way to speed it up. So continue to give tips.
Read more

DLR & Microsoft Dynamics CRM

Posted on by osmirnov Posted in .NET, DLR, Dynamics | 1 Comment

I always thought what impact the Microsoft Dynamics has had on the dynamic data types in .Net 4.0 framework. Because, for example, CRM has a very similar concept founded on adding properties to an entity. So I ain’t saying that dynamic keyword was chosen for the dynamic data types. Anyway, one after another. This post is about applying a dynamic data type for Dynamics CRM development.
Read more

DLR & Microsoft SharePoint

Posted on by osmirnov Posted in .NET, DLR, SharePoint | 1 Comment

Many developers can’t find a scenario to use such feature of .Net framework 4.0 as Dynamic Language Runtime (DLR). I guess of main reason for it is static thinking. Yes, hardly to start thinking in dynamic context if you work with static-compile programming language like C#. But if you can study to do it you’ll greatly simplify your code. In this post I’m going to show how we can apply a dynamic data type for SharePoint development.
Read more

Search a value in debug windows

Posted on by osmirnov Posted in DLR, Visual Studio | 3 Comments

Visual Studio 2010 has many windows helping in a debug process. But more of them follow an next idiom: “Say me a password and I’ll tell you a secret”. Above the password I mean a variable name and above the secret I mean a variable value. This is right and covered more part of cases. But sometimes you know a value instead of a place where it is. Sounds unrealistic? Maybe… Then imagine a list of more than 50 elements where each element of the object has 2 properties. A question: How quickly can you find an object knowing the value of a property and using only debug windows? And if it’s not single? If you are familiar with this situation, then the post for you.
Read more