Showing results for .NET Framework - Visual Studio Blog

Sep 30, 2009
1
0

Dynamic in C# 4.0: Introducing the ExpandoObject

Visual Studio Blog
Visual Studio Blog

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 ...

C#Node.jsSQL
Sep 14, 2009
0
0

Generating Dynamic Methods with Expression Trees in Visual Studio 2010

Visual Studio Blog
Visual Studio Blog

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
Mar 25, 2009
0
1

How to use LINQ methods to compare objects of custom types

Visual Studio Blog
Visual Studio Blog

LINQ provides a convenient syntax and many useful methods for operating with collections of objects. However, to be correctly processed by LINQ comparison methods such as Distinct or Intersect, a type must satisfy certain requirements.Let’s take a look at the Distinct method, which returns all distinct objects from a collection.List<int>...

C#.NET Framework