search part of key in the SortedDictionary
-
Hi I have a SortedDictionary and I need to find the first key match with the character(s) given. For example, if c has been pressed, I need to get the first word in the SortedDictionary that starts with 'c'. Is that possible? I've read about
SortedDictionary< TKey, TValue> .First Method
and
Enumerable.First< TSource> Generic Method (IEnumerable<TSource>, Func<TSource, Boolean>)
in MSDN, but I can't understand it.
-
Hi I have a SortedDictionary and I need to find the first key match with the character(s) given. For example, if c has been pressed, I need to get the first word in the SortedDictionary that starts with 'c'. Is that possible? I've read about
SortedDictionary< TKey, TValue> .First Method
and
Enumerable.First< TSource> Generic Method (IEnumerable<TSource>, Func<TSource, Boolean>)
in MSDN, but I can't understand it.
I believe the second is telling you that you can write a function that takes the tsource and returns a bool to tell you a match, and pass it to the First method.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.