E
eBob.com
I've just learned about Dictionaries and I like them. But I need to sort
one, in key order, and I can't find a way to do that. Well, I could
certainly write the code, but it just seems like there should be some method
to do it but I can't find one. Strangely, IntelliSense seems to know about
a Dictionary.Orderby method but I can't find any doc on OrderBy (unless it's
the LINQ OrderBy, the doc of which looks a bit over my head and lacks an
example - at least what I have found so far; and I haven't begun to look
into LINQ yet).
So ... any way to sort a Dictionary in key order without having to write a
sort routine?
Thanks, Bob
one, in key order, and I can't find a way to do that. Well, I could
certainly write the code, but it just seems like there should be some method
to do it but I can't find one. Strangely, IntelliSense seems to know about
a Dictionary.Orderby method but I can't find any doc on OrderBy (unless it's
the LINQ OrderBy, the doc of which looks a bit over my head and lacks an
example - at least what I have found so far; and I haven't begun to look
into LINQ yet).
So ... any way to sort a Dictionary in key order without having to write a
sort routine?
Thanks, Bob