c#裏 KeyValuePair和Dictory的區別

KeyValuePair 和 Dictionary 的關係 1、KeyValuePair      a、KeyValuePair 是一個結構體(struct);     b、KeyValuePair 只包含一個Key、Value的鍵值對。 2、Dictionary      a、Dictionary 可以簡單的看作是KeyValuePair 的集合;     b、Dictionary 可以包含多個
相關文章
相關標籤/搜索