(function ($) { var model = { init: function () { } }, view = { init: function () { model.init(); } }, contro...
Linq 'Join' example
Example var joined = from Item1 in list1 join Item2 in list2 on Item1.Id equals Item2.Id // join on some property select new { Item1, Item2 };
Linq 'Group by' example
Example var query = (from t in Transactions group t by new {t.MaterialID, t.ProductID} into grp select new { ...
Splitting a collection over multiple threads
Inspired by http://www.drdobbs.com/windows/custom-parallel-partitioning-with-net-4/224600406?pgno=4 .net 4 source code [TestMethod] public void TestMethod2() { var list = new List<Custo...