Inheritance: System.Collections.Hashtable
示例#1
0
        public void TestHashtableWithCustomComparer()
        {
            // see bug #324761
            IDHashtable dd = new IDHashtable();
            Random      r  = new Random(1000);

            for (int n = 0; n < 10000; n++)
            {
                int v = r.Next(0, 1000);
                dd [v] = v;
                v      = r.Next(0, 1000);
                dd.Remove(v);
            }
        }
示例#2
0
	public void TestHashtableWithCustomComparer ()
	{
		// see bug #324761
		IDHashtable dd = new IDHashtable ();
		Random r = new Random (1000);
		for (int n = 0; n < 10000; n++) {
			int v = r.Next (0, 1000);
			dd [v] = v;
			v = r.Next (0, 1000);
			dd.Remove (v);
		}
	}