【问题标题】:DictionaryEntry and KeyValuePairDictionaryEntry 和 KeyValuePair
【发布时间】:2011-05-21 19:41:34
【问题描述】:

什么时候使用 KeyValuePair 和 DictionaryEntry?

请详细帮助我。我真的需要知道。

【问题讨论】:

  • 如果您真的需要知道,那么您也会知道何时何地。我们应该假设 .NET 吗?

标签: .net collections dictionary key-value


【解决方案1】:

DictionaryEntry 用于旧的 .NET 1.0 非通用 Hashtable 类。 .NET 2.0 中引入的通用Dictionary 类使用KeyValuePair

【讨论】:

  • KeyValuePair 只能与 Dictionary 类一起使用。
猜你喜欢
  • 1970-01-01
  • 2012-04-11
  • 1970-01-01
  • 1970-01-01
  • 2014-11-26
  • 1970-01-01
  • 2014-07-03
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多