LinkedHashMap in .NET

后端 未结 6 1962
天涯浪人
天涯浪人 2020-11-29 09:54

I wonder if there is a counterpart to java.util.LinkedHashMap in .NET? (ie. the elements are (re)ordered automatically if I access an element. (boolean accessOr

6条回答
  •  迷失自我
    2020-11-29 10:52

    I used System.Collections.Specialized.OrderedDictionary as a replacement for LinkedHashMap. It worked for me. Is there anything I'm missing about OrderedDictionary (yes, it's not generic, but it is available with .Net 2 or newer)?

提交回复
热议问题