I\'m using a System.Collections.Generic.Dictionary.
System.Collections.Generic.Dictionary
I want to return the first key from this dictionary. I tried dic.Keys[0]
dic.Keys[0]
we can using linq technology
linq
var key = dic.Take(1).Select(d => d.Key).First()
or we can use another search
var myList = dic.Take(1).Where(d => d.Key.Contains("Heaven")).ToList();