How to spilt a collection into sub collections of a certain size in .NET 6+ using the LINQ Chunk method

FYI, in .NET 6+ the Chunk LINQ method is useful for splitting up sequences into sub sequences of a certain … Continue reading How to spilt a collection into sub collections of a certain size in .NET 6+ using the LINQ Chunk method

Benchmark custom code workarounds against each new version of .NET as the framework gets faster all the time

Always revisit and benchmark your custom code workarounds with each version of .NET. The .NET framework and the JIT compiler gets faster … Continue reading Benchmark custom code workarounds against each new version of .NET as the framework gets faster all the time

.NET ChatGPT example – API controller using injected repository and DTO mapped to model using explicit operator

I love ChatGPT and previously posted an example of some ChatGPT generated code to create a controller, with DTO and … Continue reading .NET ChatGPT example – API controller using injected repository and DTO mapped to model using explicit operator