Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下结果集:
名字出现 Jack 2 Jill 1 Tom 3
我想把它放在HashMap中吗?我只能显示一个条目还是最好使用 ArrayList ?
Dictionary<string, int> dictionary = new Dictionary<string, int>(); dictionary.Add("Jack ", 2); dictionary.Add("Jill ", 1); dictionary.Add("Tom ", 3);