Part 81 When to use a dictionary over list in c#04:33

  • 0
Published on June 14, 2017

Text version of the video

Slides

Link for all csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists

Find() method of the List class loops thru each object in the list until a match is found. So, if you want to lookup a value using a key dictionary is better for performance over list. So, use dictionary when you know the collection will be primarily used for lookups.

https://cafeadobro.ro/

https://www.stagebox.uk/wp-includes/depo10-bonus10/

https://iavec.com.br/

Enjoyed this video?
"No Thanks. Please Close This Box!"