Visual Studio Blog

The official source of product insight from the Visual Studio Engineering Team

Dynamic in C# 4.0: Introducing the ExpandoObject
Dynamic in C# 4.0: Introducing the ExpandoObject
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 ...
How to use LINQ methods to compare objects of custom types
How to use LINQ methods to compare objects of custom types
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<...