穆桂英

 

KeyValuePair 和 Dictionary 的关系和区别

KeyValuePair 和 Dictionary 的关系
1、KeyValuePair 
    a、KeyValuePair 是一个结构体(struct);
    b、KeyValuePair 只包含一个Key、Value的键值对。
2、Dictionary 
    a、Dictionary 可以简单的看作是KeyValuePair 的集合;
    b、Dictionary 可以包含多个Key、Value的键值对。

posted on 2018-08-16 15:51  穆桂英  阅读(2362)  评论(0编辑  收藏  举报

导航