Browse by Tags

Tagged Content List
  • Blog Post: The C# and Visual Basic Code-Focused IDE Experience

    The new C# and Visual Basic code-focused IDE experience in the Visual Studio 2015 Preview is significantly improved over the experience in Visual Studio 2013 and I’m excited to share some highlights with you. We’ll look at a few key areas: Refreshed Core IDE Experiences – your...
  • Blog Post: Roslyn Syntax Visualizers

    Hello everyone! As you may have heard, today we announced the first CTP of the Roslyn project! You can visit the Roslyn MSDN Page to learn more about the project and to download the CTP. You can also read more about Roslyn at the following links - Soma’s Blog Eric Lippert’s Blog...
  • Blog Post: Introducing the Microsoft “Roslyn” CTP

    Today we are releasing the first Community Technology Preview of the Roslyn Project ! What is Roslyn? In the past, our compilers have acted as black boxes – you put source text in and out the other end comes an assembly. All of that rich knowledge and information that the compiler produces...
  • Blog Post: Covariance and Contravariance FAQ

    In this post I’ll try to answer the most common questions I find on forums and in documentation feedback about C# covariance and contravariance. It’s a big topic for a single blog post, so expect to see a lot of “more information” links. Special thanks ...read more
  • Blog Post: What is the difference between “dynamic” and “object” keywords?

    Let’s take a quick look at the object keyword first. I’m not going to talk a lot about it because it’s been around since C# 1.0. This keyword is nothing more than a shortcut for System.Object , which is the root type in the C# class hierarchy. (However ...read more
  • Blog Post: Getting Information About Objects, Types, and Members with Expression Trees

    Starting with C# 3.0 and Visual Studio 2008, you can use expression trees to get information about objects, types, and members. In this post I’m going to show some examples and explain what benefits you can get by using this technique. If you are not ...read more
  • Blog Post: Debugging Expression Trees in Visual Studio 2010

    First of all, let’s take a look at the example from one of my previous posts . It creates an expression tree for calculating the factorial of a number. ParameterExpression value = Expression .Parameter( typeof ( int ), "value" ); ParameterExpression ...read more
  • Blog Post: Dynamic in C# 4.0: Creating Wrappers with DynamicObject

    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 ...read more
  • Blog Post: 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 ...read more
  • Blog Post: Generating Dynamic Methods with Expression Trees in Visual Studio 2010

    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 ...read more
  • Blog Post: 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 ...read more
Page 1 of 1 (11 items)