Dictionary or KeyedCollection?

后端 未结 6 755
无人及你
无人及你 2020-12-10 00:26

I have a class (SomeClass) which contains a property Name of string type. And I need to store an array of that class and find its item

6条回答
  •  隐瞒了意图╮
    2020-12-10 01:05

    You can't use KeyedCollection because it's abstract: http://msdn.microsoft.com/en-us/library/ms132438.aspx. This means you can't create an object of it.

提交回复
热议问题