C# Arrays, Lists, and Dictionaries (Quick dotnet tutorial)
Vložit
- čas přidán 30. 04. 2023
- This video is a brief overview for beginners on how you can effectively use arrays, lists, and dictionaries in your C# dotnet applications. I skip over the nitty-gritty details of why each data structure has different performance characteristics or how they function exactly under the hood, but instead, focus on how you can leverage them. If you want more in-depth explanations, let's hear about it in the comments!
For more videos on programming with detailed examples, check this out:
• All About Programming!...
Check out more Dev Leader content (including full in-depth articles with source code examples) here:
linktr.ee/devleader
Social Media:
CZcams: / @devleader
TikTok: / devleader
Blog: www.devleader.ca/
GitHub: github.com/ncosentino/
Twitch: / ncosentino
Twitter: / devleaderca
Facebook: / devleaderca
Instagram: / dev.leader
LinkedIn: / nickcosentino
#dotnet #csharp #tutorial #programming #array #list #dictionary
✅Like, ✅share, and ✅subscribe to the channel for more full length content about software engineering topics presented by a Principal Software Engineering Manager 🤓
Great explaination 👍👍
@@As-crafts awesome! I'm glad you found it helpful!
Great content. It really helped me.
I'm very happy to hear that!
Super helpful in understanding the differences in data structures coming from JavaScript. Key takeaways from your explanations for me:
6:27 Use Arrays for fixed size collections
12:55 Use Lists for dynamic size collections
16:28 For Dictionaries, you can overwrite an existing value by assigning an item using "dictionary[index] = value" bracket notation. But if you want to avoid overwriting an existing value, we can use the "dictionary.Add()" method.
Awesome awesome!! Those are great highlights! Thanks for sharing, and it's so nice to hear that you found this helpful 💪💪
👍👍
Hope you found it helpful! Let me know if there's anything else you'd like covered!
Sir can't find any video on generics?.....
These collections *are* generics 🙂 are you looking for a more basic introduction to the concept?
Let me know 🙂
So basically Arrays are static with single data type collection, Lists are dynamic with single data type collection and Dictionaries are dynamic with 2 different data type collection....That's it?
@@uditjagtap8317 the first part is a good summary.
The second part is true, but it leaves more to be desired in the definition. Dictionaries have very different characteristics.
If you want to find a specific element in an unsorted array or list you need to step through it. A dictionary, the lookup by key is extremely efficient and you don't need to walk through the elements.
Dictionary keys must also be unique, but there's no such constraint on an array or list 🙂
@@DevLeader Oh...get it thank you for the explanation 😄
Lots of talk and incomplete explanation
What was not explained? There are several ways to offer feedback, and simply saying something negative without much context is *exactly* what your own criticism was of the video.
- What did you feel was superfluous and extra? ("Lots of talk")
- What did you feel was an incomplete explanation?
- What's your level as a programmer? Are you junior, and still feel that you don't get the concept? Or are you advanced, and feel like there's other aspects that you'd mention?
Thanks for taking a moment to offer feedback, but that's inactionable due to "incomplete explanation".