Output Caching With VaryBy Complex Object

OutputCache is great for caching Actions with simple parameters, but when you are passing in a complex object it becomes a bit trickier to deal with.…

Split Large C# List Into Smaller Lists

I had the need recently to split up a List of objects (2.5 million rows) into smaller lists so I could batch insert into a database. I stumbled on this method, and it's lightning fast for splitting large lists into smaller chunks of whatever size you want.…