The Fastest Way To Work With Lists in C#! | .NET Tips 6

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
dotnet tips part 6. we all know at this point that if you want to work with an array in C sharp as fast as possible then you want to use the span of that array but that's pretty useless when working with the most common collection type in C sharp the list in c-sharp every list is actually backed by an array but that array is inaccessible so you can't use it to grab its span what you can do however is use the collections master class and its aspan method this method will allow you to grab access to that internal array of a list and use it for any operation be very careful however grabbing the span this way is unsafe and if the list is mutating while you're iterating over it you won't get an exception as you would normally do subscribe for more.net tips
Info
Channel: Nick Chapsas
Views: 110,077
Rating: undefined out of 5
Keywords: Elfocrash, elfo, coding, .netcore, dot net, core, C#, tutorial, software engineering, .net core, nick chapsas, chapsas, clean code, dotnet, .net 6 features, shorts, .net 6, dotnet 6, list, span list, span array, readonlyspan, c# span, .net span
Id: QqNmUmmVH-Y
Channel Id: undefined
Length: 0min 44sec (44 seconds)
Published: Mon May 08 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.