#用foreach语句啊。例子:
using System;
using System.Collections;
public class CollectionClass
{
public static void Main()
{
Hashtable Coursehash = new Hashtable();
Coursehash.Add("01", "这是01");
Coursehash.Add("02", "这是02");
Coursehash.Add("03", "这是03");
foreach (string s in Coursehash.Keys)
{
Console.WriteLine(s + " " + Coursehash[s]);
}
Console.ReadLine();
}
}
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。