Closed mfkl closed 6 years ago
It depends on what we are trying to do. When the size of the returned collection is known in advance and doesn't change, my vote goes to using an Array
How about Span<T>
?
Span
This link has some information http://adamsitnik.com/Span/
Looks like there is an implicit cast operator from T[]
to Span<T>
. Let's go with Arrays for now.
@jeremyVignelles