Rock Your Code :Coding Standards for Microsoft .NET – 7th Edition

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

Collection Performance: Creating New Immutable Collection From a Collection

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().

Collection Performance: Creating new collection From a collection Using 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.