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
I can't believe all these convoluted answers. Assuming the key is of type: string (or use 'var' if you're a lazy developer): -
List listOfKeys = theCollection.Keys.ToList();