G
Gerrit Beuze
Hi all,
Using C# 1.1:
I need a fast way of determining whether a string is in a list of approx 150 keyword like strings.
in two versions: one case-sensitive, the other one case-insenstive.
I thought of loading the keywords in a Hastable as Keys with null values,
and then use Hastable.ContainsKey(string)
but Hashtable does not seem to support case-insentive keys.
Linear search using a StringCollection is too slow for what I'm looking for.
Any suggestions on the data structure to use?
Does the 1.1 framework come with sorted (case insentive) stringlists ?
Thanks in advance,
Gerrit Beuze
ModelMaker Tools
Using C# 1.1:
I need a fast way of determining whether a string is in a list of approx 150 keyword like strings.
in two versions: one case-sensitive, the other one case-insenstive.
I thought of loading the keywords in a Hastable as Keys with null values,
and then use Hastable.ContainsKey(string)
but Hashtable does not seem to support case-insentive keys.
Linear search using a StringCollection is too slow for what I'm looking for.
Any suggestions on the data structure to use?
Does the 1.1 framework come with sorted (case insentive) stringlists ?
Thanks in advance,
Gerrit Beuze
ModelMaker Tools