开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜