C# Hashtable Equals(Object)
Description
Hashtable Equals(Object)
determines whether the specified
object is equal to the current object.
Syntax
Hashtable.Equals(Object)
has the following syntax.
public virtual bool Equals(
Object obj
)
Parameters
Hashtable.Equals(Object)
has the following parameters.
obj
- The object to compare with the current object.
Returns
Hashtable.Equals(Object)
method returns true if the specified object is equal to the current object; otherwise, false.
Example
//w w w . j a v a2 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.