.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

how to get value from hashtable in c#

Posted By: Suma     Posted Date: September 09, 2009    Points:2   Category :C#
Hi,
I need to get all value from HashTable in c# not based on key. Suppose i have HashTable with 5 key and value Pair i need to get all the keys stored in hashtable.

Thanks
Suma

Responses
Author: Venkat             
Posted Date: September 10, 2009     Points: 5   

HI,
You can try this code to get the Key Only value from the hash table in C#


foreach (int key in m_hsh.Keys)
{
//Your Res programming logic goes here
}


In the above code m_hsh is Hash table

Mark As Answer if this solve your problem
Warm Regards,
Venkat
Author: Syed Shakeer Hussain             
Posted Date: September 10, 2009     Points: 5   

Hi check the following link
http://www.c-sharpcorner.com/UploadFile/pradeep.tiwari/PradeepTiwariHashtable11072006072247AM/PradeepTiwariHashtable.aspx



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend