Skip to content

Blog<T>

C# and ASP.NET blog by Chris St Clair

  • Extension Methods

6 lesser-known features of C# / .NET that you should be using

Posted on October 7, 2019October 7, 2019 by Chris

Introduction This post is going to setup 6 features of the .NET Framework which I feel are under-utilised by a

Continue reading
Uncategorized
6 comments

Unit testing – Making existing code testable

Posted on September 27, 2019September 28, 2019 by Chris

Introduction Unit testing (and integration testing) is something every developer knows they should do, but quite often it can fall

Continue reading
Uncategorized
3 comments

7 dangerous mistakes in C#/.NET that are easy to make

Posted on September 24, 2019September 25, 2019 by Chris

C# is a great language, and the .NET Framework is pretty damn good too. C#’s strong typing reduces the amount

Continue reading
Uncategorized
5 comments

Demystifying Async/Await

Posted on March 13, 2019March 13, 2019 by Chris

Introduction Back in 2012, Microsoft released C# 5 with a handful of new features, one being ‘async/await’. At the company

Continue reading
Uncategorized
10 comments

Multithreading made easy – Parallel ForEach

Posted on February 14, 2019February 14, 2019 by Chris

Introduction This week, I was presented with an interesting problem. I had a WPF application which allowed users to scan

Continue reading
Uncategorized
13 comments

Dealing with issues reported by users

Posted on September 9, 2018September 9, 2018 by Chris

If you’re a student learning C#, this isn’t going to be very relevant to you. If you’ve landed a job

Continue reading
Miscellaneous
Leave a comment

Collection of small but useful extensions methods #1

Posted on August 24, 2018August 24, 2018 by Chris

I’ve done a few posts on some useful extension methods before, but there’s also a bunch of smaller extension methods

Continue reading
Uncategorized
6 comments

It’s a feature #1: The sad trombone

Posted on August 12, 2018August 12, 2018 by Chris

Back 5 years ago, our company had just secured a bespoke software deal that would see us develop a WPF

Continue reading
Uncategorized
Leave a comment

How I stopped hating programming and learnt to love it

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

So as an aside from my usual C#/.NET posts, I thought I’d write up about what got passionate about programming

Continue reading
Miscellaneous
One comment

Validating string lengths in LINQ to SQL, or how to fix ‘String or binary data would be truncated’

Posted on August 5, 2018August 9, 2018 by Chris

Problem While this error isn’t strictly a C# (the error is actually generated by SQL Server), it’s quite likely that

Continue reading
Extension Methods, Vague Errors
One comment

Posts navigation

1 2 Next Posts»

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.