C# KeyValuePair<TKey,TValue> 与 Dictionary<TKey,TValue> 区别

时间:2020-08-28 00:14:23   收藏:0   阅读:422

KeyValuePair<TKey,TValue>

Dictionary<TKey,TValue>

总结

foreach( KeyValuePair<string, string> kvp in myDictionary )
{
    Console.WriteLine("Key = {0}, Value = {1}", kvp.Key, kvp.Value);
}

原文:https://www.cnblogs.com/Alicia-meng/p/13574845.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!