KeyValuePair 和 Dictionary 的关系

https://www.likecs.com/show-205081943.html#sc=466.6666564941406

KeyValuePair 和 Dictionary 的关系

1、KeyValuePair 

    a、KeyValuePair 是一个结构体(struct);

    b、KeyValuePair 只包含一个Key、Value的键值对。

2、Dictionary 

    a、Dictionary 可以简单的看作是KeyValuePair 的集合;

    b、Dictionary 可以包含多个Key、Value的键值对。

posted @ 2022-11-13 22:36  yinghualeihenmei  阅读(58)  评论(0)    收藏  举报