Have you ever worked with the WCF DataServices Client? I was contributing to the nuget project and experienced *some* problems. After a few operations (web request through either the WCF Data Service Context or manually through a WebRequest) operations started to time out. I used (the fabulous) refl... [More]

The Visual Studio built in Code Generator T4 is mostly used to generate code files. As code in .NET is organized in namespaces I needed a way to figure out the correct namespace for the generated file. T4 provides the ability to access properties of the Host. When using Visual Studio this is the Env... [More]

Most people state that regions are bad. I prefer a more fine grained definition: Regions in code are like knives. They can cause serious injury. But a surgeon can use one to do good. What are region intended for? Regions provide you the ability to expand and collapse code. You can do this with memb... [More]

I’m currently working on an ASP.NET MVC project. Today I stumbled across a requirement that involved enabling the editing of data that is displayed (on a lets call it master page). The specialty of the data is it’s an enumerable. I had a few Ideas how to solve the problem. 1. Ajaxification Pro: I l... [More]

Today I had to read values from multiple CVS-files. I wanted to build a testable and reusable solution instead of the ugly sequential spaghetti that easily happens. So here is a sample of a line: 1 var lineReadFromCsv =
2 "42;Daniel;Fisher;1980-03-25;{79704C0D-1A4F-4DDD-80F6-CA79E81BF7CD}... [More]

I believe that better tools lead to better results. That’s why I care about my tools performance a lot! Recently I had a conversation with Peter Kirchner and Kay Giza on how to speed up Visual Studio. Specifically by configuring you Anti-Virus software. But beside that there are loads of things that... [More]

Ah… there is one left. We do not only want to remove properties form the model state the typed way. What about adding error messages? Here we go: using System;
using System.Linq.Expressions;
using System.Reflection;
using System.Web.Mvc;
namespace devcoach.Web.Mvc
{
/// <summary>
... [More]

I’m currently working with Philip on a project which also has an ASP.NET MVC (by the way I really like the .MVC idea somebody came up the last weeks) project. We came to the point where we needed to remove the required property “Password” if the user is registering using OAuth. Argh. That’s is not t... [More]

I just installed Adobe Air Launchpad Beta. It is an application that eases up development of Adobe Air Projects. By providing a wizard UI that collects information on how the app will be called, look like and so on … The result is a generated project. Even If I’m really not a fan of Adobe… The... [More]