我有一組用戶名/密碼對。沒有重複的用戶名,但允許密碼重複。'System.Collections.Generic'用於用戶名和密碼列表的最佳選擇
使用System.Collections
我有很多選擇,例如:
List<Dictionary<string, string>> accounts;
// or
System.Collections.Specialized.NameValueCollection[] accounts;
我們都有一個什麼樣的程序員用一組用戶名/密碼對(獲取已知用戶名的密碼需要的概念,添加用戶名/密碼...)。
這是一個兩級集合。用於用戶名/密碼對的集合以及這些對的集合。 – Xaqron 2010-12-18 23:53:07