Skip to content

Author Archives: Alexandra Rusina

Converting a VBA Macro to C# 4.0

I’ve talked a lot about improved COM interop in C# 4.0 and how much easier it is now to work with Office applications. This time I want to share some tips and tricks on how you can convert Visual Basic for Applications (VBA) macros to C# 4.0 by using O…

Continue Reading: Converting a VBA Macro to C# 4.0 →

Blocking Collection and the Producer-Consumer Problem

This time I want to discuss features that belong to the new System.Collections.Concurrent namespace in the.NET Framework 4. When you design parallel applications, you often need thread-safe data storage as well as some mechanism of sending messages bet…

Continue Reading: Blocking Collection and the Producer-Consumer Problem →

Parallel Programming: Task Cancellation

In this post, which is the third one in my parallel programming introduction series, I want to show how you can cancel parallel operations when working with the Task Parallel Library (TPL). I’m going to modify the program that I started in the previo…

Continue Reading: Parallel Programming: Task Cancellation →

Parallel Programming: Task Schedulers and Synchronization Context

Thanks to everyone who provided feedback on my previous post Parallel Programming in .NET Framework 4: Getting Started. As promised, I am continuing the series. This time, let’s go a little bit deeper and talk about task schedulers, synchronization c…

Continue Reading: Parallel Programming: Task Schedulers and Synchronization Context →

Parallel Programming in .NET Framework 4: Getting Started

With this post I want to start a series devoted to the new parallel programming features in .NET Framework 4 and introduce you the Task Parallel Library (TPL). Update. The list of posts in this series: Getting Started (this post) Task Schedule…

Continue Reading: Parallel Programming in .NET Framework 4: Getting Started →

New IDE Features in Visual Studio 2010 for C# Developers

After a quick review of C# language features, let’s do the same for the IDE improvements. So, what’s in there for C# developers?
Generate From Usage
This feature greatly improves Visual Studio support for test-driven development (TDD). However, it …

Continue Reading: New IDE Features in Visual Studio 2010 for C# Developers →

Get Ready For C# 4.0!

Visual Studio 2010 is here! And of course this means that C# 4.0 is also here. Let’s do a quick review of the new language features added in this release.
Dynamic
The dynamic keyword is a key feature of this release. It closes the gap between dynamic…

Continue Reading: Get Ready For C# 4.0! →

How can I get objects and property values from expression trees?

This is a follow-up to the Getting Information About Objects, Types, and Members with Expression Trees post, so I would recommend that you read that one first. Among other code examples in that blog post, I demonstrated how you can get a property name…

Continue Reading: How can I get objects and property values from expression trees? →

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

Continue Reading: Covariance and Contravariance FAQ →