System.Collections.Hashtable
using System.Collections;Hashtable tb = new Hashtable();

解决方案 »

  1.   

    sing System;
    using System.Collections.Generic;
    using System.Text;
    using System.Collections;namespace split
    {
        class dictionary
        {
            public dictionary()
            {
     
            }
        }
        public 
    }我在下边这个public后边就写不了hashtable,.不出来
      

  2.   

    namespace split
    {
        class dictionary
        {
            public dictionary()
            {
     
            }
        }
        public // 概念性错误,这里应该写类的名字,而不是定义变量。
    }正确做法
    namespace split
    {
        class dictionary
        {
    public HashTalbe hTable;  // 应该写这里
            public dictionary()
            {
     this.hTable = new HashTable();  // 这里初始化
            }
        }
    }