Recently I needed to break a set into multiple sub-sets, just like the String.Split() operation.
I couldn't find a simple answer; so a quick bit of code and now I have a simple generic Split<T>() extension you can use to split a collection similar to String.Split().
Code and ms tests found in the gist here: https://gist.github.com/3703440
Wednesday, September 12, 2012
Subscribe to:
Posts (Atom)
A short list of C# coding issues.
Injecting services into entities It been bugging me for a while now that to use services in a entity can be a bit of pain. It usually starts...
-
Many developers that I work with avoid working with msbuild. This is a shame, since a little msbuild knowledge can go a long way. Her...
-
I've been experimenting with different guidelines to help me construct better code. In particular I've been pondering 'how to ...
-
Recently (VS2010) Microsoft introduced a technique for customising .config files (app.config, web.config) based on a target build / publish....