Prefix search through list/dictionary using .NET StringDictionary?

前端 未结 5 1201
情歌与酒
情歌与酒 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:50

    I think the StringDictionary is old school (pre-generics). You should probably use a Dictionary(Of String, String) instead because it implements IEnumerable (think LINQ). One extremely lame thing about StringDictionary is that it's case-insensitive.

提交回复
热议问题