Rockin’ the Code World Season 4: Special Guest Khalid Abuhakmeh

The upcoming episode on C# Corner TV with special guest Khalid Abuhakmeh, CEO JetBrains Developer Advocate, will cover a range of tech topics, including htmx, JetBrains Rider, ReSharper's 20th anniversary, and more. Khalid, a .NET expert and tech advocate, will share insights from his extensive career.

Unleashing the Power of Copilot: Enhancing Visual Studio with New Slash Commands

In 2024 at Microsoft Build, new Copilot features were introduced in Visual Studio, including helpful slash commands for tasks like adding comments, explaining code, proposing fixes, generating code, receiving assistance, optimizing code, and writing unit tests. Despite its benefits, caution is advised when accepting Copilot's suggestions. Stay tuned for updates as more commands are added.

String Performance: Optimizing Resource-Based String Formatting in .NET

The content emphasizes the importance of storing user-visible strings in project resources for globalization. It introduces the CompositeFormat class from .NET 5, highlighting its benefits: consistent formatting, ease of maintenance, enhanced readability, flexible options, localization support, parameter reusability, and separation of logic from presentation. Notably, it offers performance advantages over other formatting methods.

Collection Performance: Introducing FrozenSet in .NET 8: Benefits and Benchmark PerformanceCollection Performance

.NET version 8 introduced the FrozenSet type, offering immutable and hashable set collection with benefits including improved performance, memory efficiency, and thread safety. Benchmarks show comparable performance to List, outperforming HashSet and ImmutableHashSet. However, it is slightly slower than the latter in lookups. FrozenSet offers significant advantages for concurrent applications and memory optimization.

Collection Performance: Enhancing Dictionary Performance with FrozenDictionary

The FrozenDictionary is a thread-safe, immutable, read-only dictionary optimized for fast lookups. It outperforms the Dictionary, reducing iteration and lookup times significantly.

256 Seconds with dotNetDave: Handling Exceptions Part 1 – Reusable Assemblies

This content discusses exception handling in Microsoft .NET, focusing on application layer and reusable assemblies. It offers insights on preventing exceptions and notifying calling code, and references a related book. The principles are noted to be applicable to other programming languages.

Serializing Objects: Efficient Serialization and Deserialization of Collections with JsonSerializer

The article demonstrates the ease of serializing and deserializing collections using JsonSerializer.

Microsoft .NET Code Analysis: Eliminating Dictionary Double Lookups

Using ContainsKey() followed by an indexer on dictionaries results in a double lookup, decreasing performance. This is common anti-pattern. This article will show you how to fix this and increase performance up to 2x.

Optimizing Collection Examination: A Comparative Analysis of Predicate Methods in C#

The article explores four methods for examining items in a collection using predicates, with a focus on performance. A Twitter poll revealed that over 50% of developers favored the LINQ Any() method, prompting the author to verify its efficiency in comparison to other options like Count() and Exists().

Enhancing Enum Handling in Spargine: Beyond Enums and into Versatility

Enums are essential in programming for representing fixed constants, enhancing readability, and avoiding magic numbers. However, using them as database keys is discouraged due to performance issues. The article details Spargine’s EnumHelper and EnumExtensions for improved handling of Enums and introduces the Enumeration pattern for greater flexibility and functionality.