How do I get the list of keys in a Dictionary?

I only want the Keys and not the Values of a Dictionary.

I haven’t been able to get any code to do this yet. Using another array proved to be too much work as I use remove also.

How do I get a List of the Keys in a Dictionary?

9 Answers
9

Leave a Comment