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...
-
Recently I needed to create a link to edit a content item in Orchard . Orchard uses a url like http://mysite/Home/Admin/Contents/Edit/ 12...
-
I like the idea of coding a Rich domain model, and then applying services to the model. Recently I was trying to get just a little closer to...
-
I recently needed to create a MVC (MVC3) view with multiple submit buttons. A quick look around with Google and I found a couple of approac...