Better HN
topnewbestaskshowjobs
Log inSign up

spErased

3 karma · joined Sep 25, 2021 (5y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

Just to add to this, they're essentially the same with ToList beating out ToArray at certain sizes due to how the internal array of a list is resized vs a raw array (true for .net core). A better rule of thumb is deciding if the result needs to added to/modified etc then picking accordingly.