c#里 KeyValuePair和Dictory的区别

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