KeyValuePair<(Of <(TKey, TValue>)>) 结构
定义可设置或检索的键/值对。
命名空间: System.Collections.Generic
程序集: mscorlib(在 mscorlib.dll 中)
语法 C#
public struct KeyValuePair<TKey, TValue>
备注
Dictionary<(Of <(TKey, TValue>)>)..::.Enumerator..::.Current 属性返回此类型的实例。
C# 语言中的 foreach 语句(在 C++ 中为 for each,在 Visual Basic 中为 For Each)需要集合中的元素类型。由于基于