I recently found myself needing to merge two objects into one.
Turns out to be pretty simple, using JSON.NET and a recursive extension.
Adding logging to a project I am working on led me to have a look again at the abstraction implemented in my old libraries, taking advantage of new ideas and knowledge to make a new one that's faster and easier to use, maintain and extend.
Today I was working on a prototype for a socket server (which I want to use to upgrade a couple of projects of mine) and popped in a old trick I thought I'd share.
I have been meaning to write something on this to remind me when I am tempted to use Optional Parameters, they are problematic, in a number of ways.
Had a quick play with dynamic types in .net 4, good fun but the results were useless..
Lazy<T> does the same job
This is a lovely bit of recursion which will find the first occurrence of any number of sub-strings in a string, and allows you to add a number of "protection" delimiters so that strings inside will not be found
Charter Publishing, an existing client of mine, asked me to update their site