Showing results for Visual Studio 2010 - Visual Studio Blog

Oct 19, 2009
0
0

Dynamic in C# 4.0: Creating Wrappers with DynamicObject

Visual Studio Team
Visual Studio Team

In the previous post I showed how you can use the new dynamic feature and the ExpandoObject class to add and remove properties at run time, and how this can make your code more readable and flexible than code written with LINQ to XML syntax. But there were some obvious flaws in that example: While ExpandoObject provided better syntax, LINQ to XML ...

C#Node.jsVisual Studio 2010
Sep 30, 2009
1
0

Dynamic in C# 4.0: Introducing the ExpandoObject

Visual Studio Team
Visual Studio Team

You have probably already heard about the new dynamic feature in C# 4.0 and how it is used to support COM interop. If you haven't, I strongly recommend reading the following MSDN articles: Using Type dynamic and How to: Access Office Interop Objects by Using Visual C# 2010 Features. Well, where else can you use this new feature? What are the use ca...

C#Node.jsSQL
Sep 14, 2009
0
0

Generating Dynamic Methods with Expression Trees in Visual Studio 2010

Visual Studio Team
Visual Studio Team

Expression trees first appeared in Visual Studio 2008, where they were mainly used by LINQ providers. You can use expression trees to represent code in a tree-like format, where each node is an expression. You can also convert expression trees into compiled code and run it. This transformation enables dynamic modification of executable code as well...

C#Node.jsVisual Studio 2010