How can I convert List<object> to Hashtable in C#?

后端 未结 4 1535
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-01 16:12

I have a list of objects, each containing an Id, Code and Description.

I need to convert this list into a Hashtable, using Description as the key an

4条回答
  •  感情败类
    2021-01-01 16:56

    Also look at the System.Collections.ObjectModel.KeyedCollection. It seems like a better match for what you want to do.

提交回复
热议问题