c#中,创建哈希集合,内含多名学生的姓名和成绩,然后输出所有学生的总分

这个代码怎么计算学生的总分呢class Program
{

    public static void Main(string[] args)
    {
        Hashtable h1=new Hashtable();
        h1.Add("李明","100");
        h1.Add("张三","90");
        h1.Add("李四","80");
        h1.Add("王五","85");
        h1.Add("黄六","94");
        h1.Add("郭七","60");
        foreach(DictionaryEntry i in h1)
        {
            Console.WriteLine("姓名:"+i.Key+"  成绩:"+i.Value+" ");
        }

    Hashtable h1=new Hashtable();
    h1.Add("李明","100");
    h1.Add("张三","90");
    h1.Add("李四","80");
    h1.Add("王五","85");
    h1.Add("黄六","94");
    h1.Add("郭七","60");
            int sum = 0;
    foreach(DictionaryEntry i in h1)
    {
        Console.WriteLine("姓名:"+i.Key+"  成绩:"+i.Value+" ");
                    sum += int.Paese(i.Value);
    }
            Console.WriteLine("总分:" + sum.ToString());