Skip to content

Blog<T>

C# and ASP.NET blog by Chris St Clair

  • Extension Methods

Dealing with exceptions

Posted on July 31, 2018August 1, 2018 by Chris

Exceptions can be the bane of a new programmers life. I’m sure any ASP.NET web developer is familiar with the

Continue reading
Best Practices
Leave a comment

Splitting up a collection into batches using LINQ

Posted on July 31, 2018 by Chris

Quite often I’ve found the need to split up a large list of data into multiple batches. Usually, I’d just

Continue reading
Extension Methods
One comment

Grouping sequential blocks of data using LINQ – GroupWhile

Posted on July 31, 2018August 9, 2018 by Chris

A few days ago, I was required to group sequential blocks of data into separate ‘chunks’. Imagine the below sequence

Continue reading
Extension Methods
2 comments

How to fix ‘Operation is not valid due to the current state of the object’ – LINQ to SQL

Posted on July 30, 2018August 6, 2018 by Chris

Problem You’re updating a database record using LINQ to SQL, and upon calling ‘SubmitChanges’ you find that you’re getting the

Continue reading
Vague Errors
Leave a comment

Online casinos in Chile

Posted on May 9, 2018November 9, 2022 by Chris

If you live in Chile and have a gambling license, you can play at any of the many legal online

Continue reading
Uncategorized
Leave a comment

Casinos in Milan

Posted on March 8, 2018November 9, 2022 by Chris

Milan is home to several top casinos. These casinos are located in the best locations in Milan, so you’re sure

Continue reading
Uncategorized
Leave a comment

Posts navigation

«Previous Posts 1 2

About

I've been using C# since 2010, and wanted to start this blog to share what I've picked up along the way.

Recent Posts

  • 6 lesser-known features of C# / .NET that you should be using
  • Unit testing – Making existing code testable
  • 7 dangerous mistakes in C#/.NET that are easy to make
  • Demystifying Async/Await
  • Multithreading made easy – Parallel ForEach

Recent Comments

  • Tom Nimitz on Grouping sequential blocks of data using LINQ – GroupWhile
  • Behnaz Ghasemi on Multithreading made easy – Parallel ForEach
  • Markus Johansson on 7 dangerous mistakes in C#/.NET that are easy to make
  • Thien Cuong on Multithreading made easy – Parallel ForEach
  • Chandni on Multithreading made easy – Parallel ForEach

Categories

  • Best Practices
  • Extension Methods
  • Miscellaneous
  • Uncategorized
  • Vague Errors

Archives

  • October 2019
  • September 2019
  • March 2019
  • February 2019
  • September 2018
  • August 2018
  • July 2018
  • May 2018
  • March 2018

Tags

2100 about async batch c# entity framework ex exceptions general grouping life linq linq-to-sql parallel threading unit testing
WordPress Theme: Donovan by ThemeZee.