C# Dictionary with two Values per Key?

前端 未结 10 1336
被撕碎了的回忆
被撕碎了的回忆 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

    class MappedValue
    {
        public string SomeString { get; set; }
        public bool SomeBool { get; set; }
    }
    
    Dictionary myList = new Dictionary;
    

提交回复
热议问题