Shorts: foreach on type without IEnumerable
Explores how to enable foreach loops on C# types without implementing IEnumerable, using GetEnumerator methods and extension tricks.
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 how to enable foreach loops on C# types without implementing IEnumerable, using GetEnumerator methods and extension tricks.
Explains how to use Task.WhenAny with CancellationTokenSource in C# to cancel remaining asynchronous tasks after the first one completes.
Explores how C# string interpolation uses boxing/unboxing and its performance impact, comparing string.Format and string.Concat.
Overview of key new features in EF Core 6, including compiled models, performance improvements, and batching for SQL queries.
A tutorial on implementing end-to-end (E2E) testing in Blazor applications using the Playwright automation framework for .NET.
Discusses the pros and cons of using unsigned integers (uint) in C#, covering CLS compliance, wrap-around risks, and practical use cases.
A talk on async/await in .NET, covering pitfalls, differences from parallel programming, and internal state machine workings.
A tutorial on setting up and writing unit tests for Blazor components using bUnit, with an introduction to end-to-end testing concepts.
Explores new .NET 6 features for Blazor, including WebAssembly AoT compilation, required component parameters, and compiler improvements.
Announcement and teaser for a .NET User Group Zurich online event focusing on async/await programming in C#, covering pitfalls and best practices.
A developer explains building a blog with Blazor, detailing motivations, setup, and using markdown for posts.