Sometimes you just need extensions methods to model your stuff
Using C# extension methods to solve nullability issues when modeling optional DTOs for partial entity updates.
Using C# extension methods to solve nullability issues when modeling optional DTOs for partial entity updates.
How to fix timeout issues in OllamaSharp for C# when running long AI workloads, with a custom extension library.
C# 14 introduces extension members, allowing developers to add properties and static members to existing types, not just methods.
Explores the new Extension Members feature in C# 14, comparing it to traditional extension methods with practical code examples.
Explores the new C# 14 extension members feature in .NET 10 preview, detailing its capabilities and demonstrating implementation in a NuGet package.
Explains how to create custom argument validation guards using the new extension feature in C# 14 and .NET 10.
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 implementing the 'intersperse' method in C# as an extension for IEnumerable, inspired by JavaScript libraries.
Explains how to add deconstructors to third-party C# types using extension methods, enabling tuple deconstruction for unmodifiable code.
A guide to six practical C# extension methods for IEnumerable, including IsNullOrEmpty, Partition, Median, and Mode.
A guide to five practical C# extension methods for enhancing Task<T> operations, including fire-and-forget, retry, and timeout patterns.
A guide to organizing a .NET Dependency Injection container using extension methods for better structure and maintainability.
Explores two unconventional C# patterns: using foreach on integers and awaiting TimeSpans via extension methods.
Explains core C# concepts essential for LINQ and IEnumerable, including boxing, extension methods, lambdas, and closures.
Explores how to enable foreach loops on C# types without implementing IEnumerable, using GetEnumerator methods and extension tricks.
A quick C# tip showing how to use an extension method to get the current index inside a foreach loop, combining the benefits of foreach and for.
A developer shares initial thoughts on using Kotlin for a project, highlighting features like immutability, extension methods, and Java integration.
Introducing fluent interface extensions for ASP.NET Core to simplify configuration and middleware setup with conditional methods.
A technical guide on how to disable screenshot functionality in a Windows Phone 8 app using a hidden property and reflection.
A tutorial on creating an async/await extension method for Windows Phone Choosers to simplify asynchronous operations.