In this article we’ll explore the top 10 mistakes I see new and seasoned developers make with exception management in dotnet source code. These principles should be valid for all dotnet languages, but examples will be provided in C#.
dotnet
-
-
The C# nameof expression is not going to revolutionize the way you write code, but it is likely to improve the maintainability and accuracy of the code – at least a little bit.
-
In this article we’ll explore what generics are in C# and how implementing your own generic types and generic methods in C# can help level up your coding ability.
-
Snapshot testing lets you add a broad safety net to your application and are available in common languages like JavaScript and dotnet.
-
Newer .NET developers are sometimes confused when they encounter readonly members in classes and the newer init-only setters. In this article we’ll explore both keywords along with the related get-only auto property. Finally, we’ll help you understand when to use each of these powerful language features.
-
Let’s take a look at some of the more common mistakes I see in C# code, explore why they’re mistakes, and introduce better ways of doing things.
-
This article first appeared at KillAllDefects on January 21st, 2020. Let’s talk about how LINQ’s GroupBy method makes grouping data in C# easy. We’ll start basic and then go over every available…
-
This post first appeared at KillAllDefects on January 27th, 2020 In this article, I’ll walk through the various overloads and usages of LINQ’s SelectMany methods. SelectMany is in many ways the opposite of GroupBy which…
-
C# 9 added the “Target-typed new” keyword, which is a little bit of a mouthful, but a powerful feature for simplifying your C# code. In this article we’ll look at…
-
In this article we’ll explore .NET collection interfaces, what they provide, and how to pick which one to use.
