C# Dictionary with two Values per Key?

前端 未结 10 1329
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 17:36

I have a situation in code where a Dictionary seemed like the best idea - I need a collection of these objects and I need them to be acces

10条回答
  •  醉酒成梦
    2020-12-13 17:52

    I don't believe .net has Multi-Map built in which is generally a data-structure you can use to do this type of storage. On the other hand I don't think it's overkill at all just using a custom object that holds both a string and a boolean.

提交回复
热议问题