About Me
Hi, I'm Simon Whittemore, a .NET Developer living in London. I've been a Developer for about 10 years, and have been working with .NET and C# since version 1.0. I have extensive experience developing maintainable, well architected Web and Desktop Applications in the Financial and IT Services industries, and have successfully integrated Open Source .NET applications and frameworks into processes and software.
-
Recently on Twitter
Author Archives: simon
SQL – find by text
Many moons ago (at least 18 months ago), I had a stored procedure that let me search for text in DML in the databases. Yeah, so I could search for “Order” and it would find all mentions in SPs, functiosn … Continue reading
Posted in Uncategorized
Comments Off
Dependency Injection with Unity: passing runtime parameters
Today, I had a problem of how to construct an object passing a specific date into the constructor. Normally, this is not an issue encountered frequently as only “services” are passed via constructor injection. This time however, I needed to … Continue reading
Posted in Uncategorized
Comments Off
Flexible layout with WPF GridSplitter
Here is a quick sample showing how it is possible to create a flexible resizeable layout in WPF with a GridSplitter. Here we see how you can change the size of panes in a vertical and horizontal direction. And the … Continue reading
Posted in Uncategorized
Comments Off
NUnit Constraints
For some reason, I have ignored the NUnit syntax around Assert.That up to now. I thought it was one of these experiments around a fluent interface which didn’t offer any advantages over the existing API. I wanted to write a … Continue reading
Posted in Uncategorized
Comments Off
Javascript Learning Resources
I am making a concerted effort to really *learn* javascript at the moment. There are a load of great resources out there. Here is the beginnings of a list: Douglas Crockford’s Home Page JavaScript Garden – advanced topics Learn JavaScript … Continue reading
Posted in Uncategorized
Comments Off
Contrawhatywho – nicer generics in C# 4.0
Everyone probably knows this already, but it’s probably easy to miss as *stuff now just works*. Contravariance, or covariance is now improved to make working with generics that little bit simpler. The following code now compiles fine in .net 4, … Continue reading
Posted in Uncategorized
Comments Off
Console2 and Cygwin – how to setup
So, I’ve set up my console how Scott Hanselman recommended. This is how I managed to get Cygwin to work correctly as a shell. You just need to set your shell to: %cygwin-path%\bin\bash.exe –login -i
Posted in Uncategorized
Comments Off
XCopy your dependencies in a pre-build step
Ok, again – this isn’t really ground breaking or anything, but if you have a load of dependencies that you need to copy at build time to your bin folder, this is a nice script that goes into the pre-build … Continue reading
Posted in Uncategorized
Comments Off
Distinct in Linq
Sometimes, in .net it can get a bit confusing about which interface you need to implement for to get object equality to work correctly. When using the Distinct extension method in Linq, IEqualityComparer<T> is very useful var items = new … Continue reading
Posted in Uncategorized
Comments Off
Finding Stuff
A little bit of unix command knowledge can often save a stack of time even on a windows box. This little snippet was really useful when I was trying to find out which file a function was declared in: find … Continue reading
Posted in Uncategorized
Comments Off

