Dictionary with integer array as a key

后端 未结 3 682
忘掉有多难
忘掉有多难 2020-12-20 08:34

I need a Dictionary whose key is an array of integers for example Dictionary or

Dictionary,string>.
<         


        
3条回答
  •  既然无缘
    2020-12-20 08:56

    GetHashCode and Equality are defined for List, they're just not overridden to give you behavior that you might expect and instead.

    If you're using .NET 3.5 you can write a extension methods for List that implements an override for both GetHashCode(), and Equality()

提交回复
热议问题