I'm using a System.Collections.Generic.Dictionary<string, string>
.
I want to return the first key from this dictionary. I tried dic.Keys[0]
but the only thing I have on the Keys
property (which is a KeyCollection
object) is an enumerator.
Do I have to enumerate through all the keys to get the first one?