Tech Off Post

Single Post Permalink

View Thread: How do you output the contents of a Dictionary class?
  • User profile image
    felix9

    what's so difficult about foreach ?

                foreach (var i in dict) {
                    var key = i.Key;
                    var val = i.Value;
                }
    

    wait a minute, you want to sort a dictionary ?? are you sure dictionary is the data structure you want ?