Click here to Skip to main content
15,881,559 members
Home / Discussions / C#
   

C#

 
QuestionIn java for xml binding zews framework is used ,let me know in C#.net? Pin
sridevi20057-Dec-05 1:28
sridevi20057-Dec-05 1:28 
QuestionHow to get PeakWorkingSet property after process exited? Pin
m3rlinez7-Dec-05 1:19
m3rlinez7-Dec-05 1:19 
QuestionTo access and print the values in Hashtable? Pin
MudkiSekhon7-Dec-05 1:16
MudkiSekhon7-Dec-05 1:16 
AnswerRe: To access and print the values in Hashtable? Pin
Maqsood Ahmed7-Dec-05 1:46
Maqsood Ahmed7-Dec-05 1:46 
GeneralRe: To access and print the values in Hashtable? Pin
MudkiSekhon7-Dec-05 2:14
MudkiSekhon7-Dec-05 2:14 
GeneralRe: To access and print the values in Hashtable? Pin
miah alom7-Dec-05 6:58
miah alom7-Dec-05 6:58 
GeneralRe: To access and print the values in Hashtable? Pin
MudkiSekhon7-Dec-05 17:28
MudkiSekhon7-Dec-05 17:28 
GeneralRe: To access and print the values in Hashtable? Pin
Maqsood Ahmed7-Dec-05 17:49
Maqsood Ahmed7-Dec-05 17:49 
Hello,

You can call the same method recursively to get the values from the hashtable. Some like this:
<br />
private void PrintHashtable(Hashtable hash)<br />
{<br />
   foreach(DictionaryEntry de in hash)<br />
   {<br />
      if(de.Value is Hashtable)<br />
      {<br />
          Console.WriteLine("Printing Values for Hashtable - " + de.Key);<br />
          PrintHashtable((Hashtable)de.Value);<br />
      }<br />
      else<br />
           Console.WriteLine(de.Key + " - " + de.Value);<br />
   }<br />
}


Maqsood Ahmed - MCAD.net
Kolachi Advanced Technologies
http://www.kolachi.net
GeneralRe: To access and print the values in Hashtable? Pin
MudkiSekhon7-Dec-05 19:35
MudkiSekhon7-Dec-05 19:35 
GeneralRe: To access and print the values in Hashtable? Pin
Maqsood Ahmed7-Dec-05 19:40
Maqsood Ahmed7-Dec-05 19:40 
GeneralRe: To access and print the values in Hashtable? Pin
MudkiSekhon7-Dec-05 20:14
MudkiSekhon7-Dec-05 20:14 
QuestionHow to use common files on source code level ? Pin
fracalifa7-Dec-05 1:11
fracalifa7-Dec-05 1:11 
AnswerRe: How to use common files on source code level ? Pin
S. Senthil Kumar7-Dec-05 1:38
S. Senthil Kumar7-Dec-05 1:38 
GeneralRe: How to use common files on source code level ? Pin
fracalifa7-Dec-05 8:38
fracalifa7-Dec-05 8:38 
QuestionUse of PersianClanedar as current culture in .NET 2.0 (HELP) Pin
Mohammad Mir mostafa7-Dec-05 0:55
Mohammad Mir mostafa7-Dec-05 0:55 
QuestionUrgent: convert XML file in a excel one Pin
Sasuko7-Dec-05 0:33
Sasuko7-Dec-05 0:33 
QuestionFinalizer problem Pin
Bob Stanneveld7-Dec-05 0:29
Bob Stanneveld7-Dec-05 0:29 
AnswerRe: Finalizer problem Pin
mav.northwind7-Dec-05 1:14
mav.northwind7-Dec-05 1:14 
AnswerRe: Finalizer problem Pin
S. Senthil Kumar7-Dec-05 1:28
S. Senthil Kumar7-Dec-05 1:28 
QuestionPublish COM class from inside a WindowsForms application? Pin
mav.northwind6-Dec-05 23:13
mav.northwind6-Dec-05 23:13 
QuestionCommunicating with Macromedia Flash in .Net Pin
Hadi Riazi6-Dec-05 21:32
Hadi Riazi6-Dec-05 21:32 
Questionsave aimage from the form in .jpeg format Pin
dhol6-Dec-05 20:21
dhol6-Dec-05 20:21 
QuestionConvert int to int[ ]? Pin
MudkiSekhon6-Dec-05 20:12
MudkiSekhon6-Dec-05 20:12 
AnswerRe: Convert int to int[ ]? Pin
S. Senthil Kumar6-Dec-05 20:29
S. Senthil Kumar6-Dec-05 20:29 
Questionsocket-client Pin
Ankit Aneja6-Dec-05 19:41
Ankit Aneja6-Dec-05 19:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.