I recently did a column about how to create a simple collection class. In that column, I discussed collection initializers which let you add items to a collection when the collection is instantiated.
C# 12 arrived in November with .NET 8, bringing several new features—primary constructors, collection expressions, inline arrays, and more—that make it simpler and easier to write more efficient code.
Eric Vogel goes over a few C# 6.0 language improvements that will help make your coding experiences more concise. C# 6.0 is slated for official release with Visual Studio 2015 later this year. As of ...