Two more LINQ extensions in dotnet 10
Explores two new LINQ extension methods, InfiniteSequence and Sequence, introduced in .NET 10 Preview 6, highlighting their usage and generic math support.
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.
311 articles from this blog
Explores two new LINQ extension methods, InfiniteSequence and Sequence, introduced in .NET 10 Preview 6, highlighting their usage and generic math support.
Explains how to bypass Entity Framework's SqlRaw requirement to return all entity properties by explicitly selecting NULL for missing columns.
Explains how to disable thread safety checks in Entity Framework for performance, with warnings about risks and proper usage.
A guide to using architectural unit tests in C#/.NET to enforce CancellationToken usage and sealed classes in controllers.
Explains why C# List foreach loops don't lower to array-style while loops, focusing on version safety and performance semantics.
An update on the performance fix for ToListAsync in Entity Framework Core, addressing slow queries and high allocations when fetching large data.
Explains how to add descriptive names to data-driven test cases in xUnit by overriding the ToString() method in test data records.
Explains a specific edge case where switch expressions fail in Blazor due to parsing conflicts with HTML/razor syntax.
Highlights key performance improvements in .NET 10, including stack allocation optimizations and delegate escape analysis, with benchmark comparisons.
A guide for developers to track upcoming .NET features by exploring GitHub repositories, issues, labels, and milestones.
Explains why iterating over a concrete List<T> in C# is faster than iterating over an IList<T> interface, covering boxing and virtual method overhead.
Explores unsafe C# techniques to access private fields without reflection, using memory layout and pointers for performance, as a fun educational exercise.
Explains how to create custom argument validation guards using the new extension feature in C# 14 and .NET 10.
A guide on how to clear various NuGet caches (global packages, HTTP, temp) using the dotnet CLI to free up disk space.
Analyzes Microsoft's inclusion of GitHub Copilot hints in .NET documentation, questioning if it's advertising and discussing its implications.
Explores performance improvements in .NET 10's HttpClient, focusing on reduced memory allocation and faster response times for streaming data.
Explores the new 'Extension members' feature in .NET 10 and C# 14, detailing syntax changes and potential future capabilities like adding static operators.
A guide to creating a custom 404 error page in Blazor Web Apps for .NET 8, as the traditional <NotFound> router method no longer works.
Critiques a misleading LinkedIn performance tip about Entity Framework, explaining why dragging entire databases into memory is inefficient and offering the correct solution.
A comprehensive mind map of C# language features up to version 14, available as a clickable SVG or high-resolution poster.