Overloading & Co/Contra-variance could break your code! 08 April 2010 Peter-Himschoot .NET Development, VS2010 Co and contra-variance were introduced to VB.NET and C# to make working with certain classes more natural (“because it should work”). But beware, I was experimenting a bit with this and found following possible breaking change. I started with these two classes: C# 1: public class Person... [More]
Building a declarative WCF service using Workflow Foundation 4 and Content Based Correlation 29 March 2010 Peter-Himschoot WF 4, VS2010, .NET Development This blog post accompanies my session on Workflow Foundation 4 programming during the Belgian Tech Days (actually developers and IT-pro days :)). During this session I built a WCF service using Workflow Foundation 4, and I want to show you how to do this on your own… In the first part you’ll learn ... [More]
ObservableCollection<T> now part of .NET 4 (No need to reference WPF) 22 March 2010 Peter-Himschoot .NET Development, VS2010, WPF/Silverlight ObservableCollection<T> is a generic collection added as part of WPF and Silverlight. WinForms has BindingList<T>. So writing code that targets both WinForms and WPF would mean using BindingList<T> (the common thing) and writing code targetting WPF and Silverlight would mean Observ... [More]
Fixing Application Pool not starting problem by editing ApplicationHost.config 21 March 2010 Peter-Himschoot .NET Development, AppFabric, WCF While playing around with Windows Server AppFabric I created a new Application pool set for .NET 4. However this application pool would immediately throw an error when starting; “The worker process failed to pre-load .Net Runtime version v4.0.21006.” A little experimentation showed that changing t... [More]
Using Model-View-ViewModel with WPF 20 March 2010 Peter-Himschoot .NET Development, WPF/Silverlight In this blog post I want to show my way of implementing the Model-View-ViewModel pattern for WPF. I hope it serves as a simple example for those of you who want to start using it. The advantage of MVVM is that the view, which is a WPF thing, doesn’t contain any code. Instead the view uses a lot of ... [More]
Configuring your WFC and WF4 services using AppFabric 19 March 2010 Peter-Himschoot VS2010, WCF, WF 4, .NET Development, AppFabric Configuring your services Normally I configure my services using Visual Studio (and type-ing in the configuration as Xml) or using the WCF Service Configuration tool. AppFabric also allows you to configure your services, directly from IIS (making it a nice integrated experience!). The difference is... [More]
Windows Server AppFabric Beta 2: Deploying services 14 March 2010 Peter-Himschoot AppFabric, VS2010, WCF, WF 4, .NET Development Microsoft released Visual Studio 2010 RC a while ago, but unfortunately this broke Windows Server AppFabric beta 1. Luckily march 1 MS released beta 2, which works with VS 2010 RC. I’ve installed it and will now try to show you a couple of things. So what is AppFabric? To be honest, there is anothe... [More]
Team System 2010: Easier project management with Team Project Collections 03 March 2010 Peter-Himschoot Team System, VS2010 Team System 2010 introduces the concept of team project collections (TPC). A team project collection is, as it says, a collection of team projects, which can be managed individually. You can backup, move, delete, etc… each collection individually. Each collection will also have its unique work item ... [More]
When being lazy is (finally) good 28 February 2010 Peter-Himschoot VS2010, .NET Development In this blog post I want to talk about .NET 4 new Lazy<T> class. First of all, why would you need something called Lazy? You can use it for data access for example; when you load a row from a database parent table. Would you need to load the child rows automatically, or delay until they’re re... [More]
IntelliSense improvements in Visual Studio 2010 24 February 2010 Peter-Himschoot VS2010 What developer today can live without intelli-sense? Of course I mean developers who have used intelli-sense before (if you don’t know something how can you miss something?). However finding a member in Visual Studio 2008 requires you to know the first letters of the class/method/… I’m quite sure yo... [More]