What happens when hash collision happens in Dictionary key?

前端 未结 4 755

I\'ve been coding in c++ and java entirety of my life but on C#, I feel like it\'s a totally different animal.

In case of hash collision in Dictionary container in

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 03:22

    Check this link for a good explanation: An Extensive Examination of Data Structures Using C# 2.0

    Basically, .NET generic dictionary chains items with the same hash value.

提交回复
热议问题