KeyValuePair 和 Dictionary 的關系和區別


KeyValuePair 和 Dictionary 的關系
1、KeyValuePair 
    a、KeyValuePair 是一個結構體(struct);
    b、KeyValuePair 只包含一個Key、Value的鍵值對。
2、Dictionary 
    a、Dictionary 可以簡單的看作是KeyValuePair 的集合;
    b、Dictionary 可以包含多個Key、Value的鍵值對。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM