Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is hash table

Answer Posted / kumaresh

1.Hashtable is a class which falls into System.Collections
namespace.
you can create object for hashtable. For example,
Hashtable hash = new Hashtable();

2.Key and value should be added to hashtable. For example,
hash.Add(1,"God");
hash.Add(2,"Human");

3.The key, value will be sorted automatically based on the
Hashcode generated[this operation is taken care by CLR].

4.GetHashCode() method is used to get the generated hashcode

5.While retrieving the hashtable values, you can use the
key tp retrieve the values. For example
foreach (DictionaryEntry item in hashTable)
{
Console.WriteLine("Key is {0}, Value is
{1}", item.Key,item.Value);
}
NOTE: if you add the same key into the hastable, it will
not throw any compliation error, but during runtime, it
will throw "ArgumentException" error.

Is This Answer Correct ?    19 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List all types of constraints in sql server?

961


Can you leave a union at any time?

999


How can sql server instances be hidden?

894


What are the differences between stored procedure and view in sql server?

1159


What are the steps to follow to configure SQL*Net?

992


What is 'write-ahead log' in sql server 2000 ?

989


How display code or Text of Stored Procedure using Sql query in Sql Server ?

1068


How do I find the sql server database version?

939


what is sql server? : Sql server database administration

928


Why truncate is ddl?

1028


What are the different types of triggers in SQL SERVER?

1048


What is the recursive stored procedure in sql server?

966


How to store and query spatial data?

936


Explain primary key in sql server?

971


Explain the different types of joins?

931