Adding static getter thanks to extensions
Learn how C# 14 extension blocks enable adding static getters like NaturalSort to StringComparer for cleaner code.
Steven Giesel is a Senior Software Engineer and Microsoft MVP with over 13 years of experience, specializing in .NET and modern backend development. He shares deep technical knowledge across topics such as C#, EF Core, RavenDB, distributed systems, and cloud-native architectures, and is an active speaker in the .NET community.
323 articles from this blog
Learn how C# 14 extension blocks enable adding static getters like NaturalSort to StringComparer for cleaner code.
Guide to configuring Blazor logging levels to reduce console noise, including code examples for Blazor.start.
A critical analysis of LinkedIn's content quality issues, including oversimplification, algorithm bubbles, and repetitive posts.
Explores implementing Angular-like signals in Blazor for reactive UI updates without native support.
EF Core 11 improves split query performance by pruning unnecessary JOINs from collection queries.
Zstandard compression is coming to .NET 11 with new ZstandardStream, encoder, decoder, and dictionary APIs for faster compression/decompression.
A bug in .NET where BackgroundService exceptions after first await caused exit code 0 is fixed in .NET 11, now propagating errors correctly.
Learn about the new ConfigurationIgnoreAttribute in .NET 11 that prevents configuration binding on specific properties.
A blog post about generating type-safe string enums in C# with source code generation and exhaustion support.
Explores C# record inheritance and ToString behavior, showing how the 'sealed' modifier in C# 10 fixes unexpected output.
Explores the potential addition of a FullJoin operator to LINQ in .NET 11, detailing the proposed API and its use cases.
Highlights Handy, an open-source, offline speech-to-text tool for developers, emphasizing its local processing and multi-language support.
Explains the new 'with' operator syntax for passing arguments to collection expressions in the C# 15 preview.
Updates to the .NET Toolbox, a free, open-source collection of client-side tools for .NET developers, including new features like an Options Generator and SRP Analyzer.
Using C# extension methods to solve nullability issues when modeling optional DTOs for partial entity updates.
Explores a C# proposal for adding arguments like capacity and comparers to collection expressions, potentially in C# 15+.
Introduces a free, open-source .NET Toolbox with utilities like JSON to C# conversion, middleware designer, and package centralizer for developers.
Explains why Task.Delay in C# fails for delays over 49.7 days and provides a workaround for long-running timers.
Analyzes performance differences between ToListAsync and ToArrayAsync in Entity Framework, concluding ToListAsync is faster.
Article explains why GitHub Actions runners are unreliable for benchmarking due to inconsistent hardware and performance variability.