Category Archives: .NET

WCSF and VS2010

Guidance Automation isn’t supported yet in Visual Studio 2010 beta 2 and this sucks (my apologies for using this word). In a project we’re currently working on we’re using Entity Framework and the Web Client Software Factory and I would … Continue reading

Posted in .NET | Tagged , , , | Leave a comment

Understanding Oslo

Are you also intrigued by Oslo but don’t really understand what to do with it? Well, then you have to read this article of Kraig Brockschmidt, he talks about the part you don’t here in the usual presentations. He also … Continue reading

Posted in .NET | Tagged | Leave a comment

LINQ to SQL – mapping multiple resultsets to the same type

Apparantly LINQ to SQL doesn’t really support mapping multiple resultsets to the same .net type. My situation is like this:The stored procedure returns 4 resultsets and I want to map the first 3 sets to the same .net type. Those … Continue reading

Posted in .NET | Tagged , | Leave a comment

BackgroundWorker in different AppDomain not synchronizing with main thread

One of my projects is creating an application framework and this consists of several libraries with "tools", base UI elements (forms, controls…) and a "hosting" application. In the near future I will probably dedicate one or more articles about this … Continue reading

Posted in .NET | Tagged | Leave a comment

ServiceFacadeExecuter: Minimize the code in your service

When you write the code for your (WCF) service you’ll probably find yourself writing the same code for every method for every service. It might look a bit like this (simplified): public List<Contact> GetContacts(SomeInput input) { // log usage of … Continue reading

Posted in .NET | Tagged | Leave a comment

Generics and covariance/contravariance

Today I was writing code that looks like this: public interface IChild<TParent>{} public class GenericSet<TChild>    where TChild : IChild<GenericSet<TChild>>{} public class SpecificSet : GenericSet<ChildClass>{}    public class ChildClass : IChild<SpecificSet>{} If you try to compile this you’ll get the following compiler … Continue reading

Posted in .NET | Tagged | Leave a comment

Visual Studio 2008 – Code Metrics and .net source code

The new Visual Studio will have a new tool called Code Metrics, "Code Metrics is a new tool window that helps users find and act upon complex and unmaintainable areas within an application". More information can be found on the … Continue reading

Posted in .NET | Tagged | Leave a comment

DataView vs DataTable.Select

This week I was working on some performance issues in an application and encountered a big difference between filtering data from a DataTable using a DataView or the DataTable.Select method. The application I’m talking about could be retrieving 40000 rows … Continue reading

Posted in .NET | Tagged | Leave a comment