Home of the AlmostImplementedException


Null Object Pattern

As announced in my previous post about Introducing Design Patterns, I will start with the first concrete post about the “Null Object Pattern”. For this I will take the chess board example from Indexed Properties. What is the Null Object Pattern? It is a design pattern that belongs to the “Behavioral patterns”. This object does […]

, , , , ,

Introducing Design Patterns

As promised in my previous post about “Indexed Properties”, I will start to give you some insights into design patterns. What are “Design Patterns”? To make it short: Design Patterns are universal (language independed) solutions for recurring problems in object-oriented software architecture and development. In this post series we will limit to the common design […]

, , , , , , , , , , , , , ,


Some days ago i got the problem, that I have to use a custom dictionary with as parameter for a service – therefore it must be serializable. I found an interessting solution from “Paul Welter” at his blog (XML Serializable Generic Dictionary). But that’s not all! I had to implement the Constructors for Dictionary and […]

, , , , , , ,

Indexed Properties

Welcome in the new year! Hope you all enjoyed your holidays 🙂 Today I will show you how to make use of indexed properties in your own classes. Why we want it? Well, in some situations you want to give your class a partial behavoir of an array, or list, or dictionary. Let’s use a […]

, , , , , , , ,

Debug another application

Today I will show up how we could build an application that is able to can debug another. Since a while I got a problem to control an obsolete program that is productive for a while in the company I work, because it is regulary crashing and we have to know when this happens to […]

, , , ,

How to convert string to enum

It is good practice to use enums to choose which part of the code should be executed, but sometimes you’ll get a string and have to convert it to an enum. Here is, how you can do it. First, declare a custom enum or use a given one. And then use the Enum.Parse command. This […]

, , ,

Caching objects in .Net with MemoryCache

In .Net 4.0 Microsoft indroduces a new universal cache. For quite some time caches were already present in ASP.Net, but could (should) not be used in C# or VB.Net. With the new package System.Runtime.Caching there is now an easy way to implement a cache in any program, like a WebService or WPF-Application. As you will […]

, ,

Previous Posts