Check if Hashtable is equal to another in CSharp

Description

The following code shows how to check if Hashtable is equal to another.

Example


//from  w  w w.j a v  a 2  s.c om
using System;
using System.Collections;
public class SamplesHashtable  {

    public static void Main()  {
       Hashtable myHT = new Hashtable();
       myHT.Add( "one", "1" );

       Console.WriteLine(myHT.Equals(myHT) );
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    Collections »




ArrayList
BitArray
Collection
Comparer
HashSet
Hashtable
LinkedList
List
ListDictionary
OrderedDictionary
Queue
SortedList
SortedSet
Stack
StringCollection
StringDictionary