开发者

can we create array of hashtable in c#.Net?

开发者 https://www.devze.com 2023-01-27 19:40 出处:网络
Hashtable itself is a collect开发者_开发技巧ion but,can we create an array of hashtable?Why not.

Hashtable itself is a collect开发者_开发技巧ion but,can we create an array of hashtable?


Why not.

Hashtable[] hashes = new Hashtable[20];

But it is recomended to use Dictionary<TKey, TValue> instead of Hashtables.


Here you go...

Hashtable[] arrayOfHashtables = new Hashtable[42];
0

精彩评论

暂无评论...
验证码 换一张
取 消