z4kn4fein / stashbox

A lightweight, fast, and portable dependency injection framework for .NET-based solutions.
https://z4kn4fein.github.io/stashbox
MIT License
141 stars 10 forks source link

Use new C# 13 params replacement ReadOnlySpan<T> #172

Open schuettecarsten opened 3 months ago

schuettecarsten commented 3 months ago

C#13 allows a more efficient params parameter usage as described here https://blog.ndepend.com/c-13-params-collections/. Stashbox should also offer such APIs if possible. These overloads should be marked with [OverloadResolutionPriority(1)] to let the compiler prefer these overloads.