Prefix search through list/dictionary using .NET StringDictionary?

前端 未结 5 1161
情歌与酒
情歌与酒 2021-01-15 09:06

I was wondering if .NET offers any standard functionality for doing a prefix search through a list or a dictionary object. I came across the StringDictionary, b

5条回答
  •  滥情空心
    2021-01-15 09:48

    I made a generic implementation of this available here.

    Since string implements IEnumerable, you can use it with char as parameter for TKeyElement.

提交回复
热议问题