Elegant way to create a nested Dictionary in C#

前端 未结 8 1814
深忆病人
深忆病人 2021-01-31 04:57

I realized that I didn\'t give enough information for most people to read my mind and understand all my needs, so I changed this somewhat from the original.

8条回答
  •  温柔的废话
    2021-01-31 05:39

    You may be able to use a KeyedCollection where you define:

    class ThingCollection
        : KeyedCollection,Employee>
    {
        ...
    }
    

提交回复
热议问题