search List for string .StartsWith()

后端 未结 10 1665
终归单人心
终归单人心 2021-01-19 00:13

I have a

List

with 1500 strings. I am now using the following code to pull out only string that start with the string prefix

10条回答
  •  无人及你
    2021-01-19 00:41

    Have you tried implementing a Dictionary and comparing the results? Or, if you do put the entries in alphabetical order, try a binary search.

提交回复
热议问题