예제 #1
0
        public HashTable(int size)
        {
            items = new HashItem <T> [size];

            for (int i = 0; i < items.Length; i++)
            {
                items[i] = new HashItem <T>(i);
            }
        }
예제 #2
0
        public HashTable(IEnumerable <T> iEnume)
        {
            List <T> list = new List <T>();

            list.AddRange(iEnume);


            items = new HashItem <T> [list.Count];

            for (int i = 0; i < items.Length; i++)
            {
                items[i] = new HashItem <T>(i);
            }

            AddRange(iEnume);
        }