Obviously, the foreach loop saving only the key works, but I don’t understand why.
I don’t actually understand dictionaries all that well in C#, and I was hoping for a better (any!) explanation as to why both the key and value fields don’t need to be assigned. Since it’s not covered in the course, is there a YouTube tutorial somewhere someone could recommend that covers the topic in more depth? Or is it something that will be covered in the Dialogue course?
Sorry, your response doesn’t actually resolve my confusion - it does point out, though, that my understanding is worse than I thought it was. Since it’s our first exposure to dictionaries, can you recommend another resource that gives a better explanation about how dictionaries, structs, and abstracts work in C#?