Join me live on Saturday, October 30nd, 2021 at 10:00 PST on C# Corner Live for season 2, show #41 where I will interview Jose Javier Columbie, DevExpress and Microsoft MVP.
I'm excited to announce the 7th edition on my coding standards book for Microsoft .NET 5! This book is a compilation of common Microsoft .NET coding standards in use today. In the past, for languages like Visual Basic, Microsoft published coding standards in a single document that developers could follow or use as a basis … Continue reading Rock Your Code :Coding Standards for Microsoft .NET – 7th Edition
Most of the benchmarks these articles tests a collection is doing so using List that uses a real-world business object (Person). I was curious about how that would perform against using an array of Person.
This article shows the difference between sorting a normal class type with a record class type.
There are several ways to sort a collection in .NET. Some of the sorting methods are part of LINQ. Let’s look at the methods that are part of the System.Collections.Generic namespace.
This article shows benchmark results for adding items to a List collection by using AddRange() and for().
This article talks about checking for items in a collection and by using a predicate. Results are for .NET 5 & 6.
What if you already have a collection in memory, like after calling a service or database, and you need to return it as a different collection type? This article will show you benchmark results when converting from a List.
This article talks about sorting collections with LINQ and doing the same using one of the sorted collections.
Immutable collections, which are collections that cannot be changed, was introduced in .NET 4.5 and are supported in .NET Core and beyond. There are immutable collections that mirror many of the generic collections in .NET. This article shows performance results from creating these lists using for() and AddRange().
Its common in programming to create a collection from a collection. Usually there is some business logic applied to the items before they are put into the new collection. This article will focus on doing that by using AddRange() from LINQ.