Ardalis.Extensions
Ardalis.Extensions copied to clipboard
Some random C# extension methods I've found useful. Published as Ardalis.Extensions on Nuget.
At the moment, our implementation of `ForEach` can only be used as the only or last step in a LINQ operations pipeline as it forces the execution of the chain...
https://stackoverflow.com/questions/47815660/does-c-sharp-7-have-array-enumerable-destructuring
This change minimizes `string.Repeat` allocations via the `SpanAction` `string.Create` overload and gives a slight speed boost. This implementation of the string repeat extension uses the `string.Create` overload that takes a...
…k baseline to match usage example. See #62 and #70
Show basic usage of each extension in the README. Organize using same organization as folder structure of code. Show how to perform the operation without the extension, and then what...
See here: https://github.com/ardalis/GuardClauses/tree/main/.github/workflows