Click here to Skip to main content
15,743,179 members
Home / Discussions / C#
   

C#

 
GeneralRe: Run method on client from server Pin
Mirko198018-Mar-10 5:20
Mirko198018-Mar-10 5:20 
QuestionHow to do operation in excel using C#.net Pin
keeperharish18-Mar-10 0:48
keeperharish18-Mar-10 0:48 
AnswerRe: How to do operation in excel using C#.net Pin
Abhinav S18-Mar-10 1:03
Abhinav S18-Mar-10 1:03 
QuestionUpdate the ProgressBar from 2 Threads Pin
Anil Kumar.Arvapalli18-Mar-10 0:20
Anil Kumar.Arvapalli18-Mar-10 0:20 
AnswerRe: Update the ProgressBar from 2 Threads Pin
Keith Barrow18-Mar-10 0:44
professionalKeith Barrow18-Mar-10 0:44 
QuestionSilverlight <-> WinForms Method Invoking Pin
softwarejaeger17-Mar-10 22:57
softwarejaeger17-Mar-10 22:57 
AnswerRe: Silverlight WinForms Method Invoking Pin
Abhinav S17-Mar-10 23:38
Abhinav S17-Mar-10 23:38 
QuestionHow To Iterate the Hashtable in C# Pin
elizas17-Mar-10 21:52
elizas17-Mar-10 21:52 
If we write in the same way as above for the hashtable then we would not get the desired values.

Hashtable ss = new Hashtable();
ss["key1"] ="india";
ss["key2"] = "bharat";

foreach (object gg in ss)
{
Console.WriteLine("Key value is " + gg);
Console.Read();
}

Here we get System.Collections.DictionaryEntry and System.Collections.DictionaryEntry as output instead of the value pairs stored in the hashtable.

In this case we can help of DictinaryEntry object for iterating the hashtable.

foreach(DictionaryEntry gg in ss)
{
Console.WriteLine("Key and value are " + gg.Key + " " + gg.Value);
Console.Read();
}

A DictionaryEntry object is simply a container containing the Key and Value .
http://www.mindfiresolutions.com/How-To-Iterate-the-Hashtable-in-C-311.php[^]
Cheers,
Eliza

AnswerRe: How To Iterate the Hashtable in C# Pin
AspDotNetDev17-Mar-10 22:16
protectorAspDotNetDev17-Mar-10 22:16 
GeneralRe: How To Iterate the Hashtable in C# Pin
OriginalGriff17-Mar-10 22:45
mvaOriginalGriff17-Mar-10 22:45 
GeneralRe: How To Iterate the Hashtable in C# Pin
AspDotNetDev18-Mar-10 0:03
protectorAspDotNetDev18-Mar-10 0:03 
QuestionUpdate Dataset Pin
sjs4u17-Mar-10 21:06
sjs4u17-Mar-10 21:06 
AnswerRe: Update Dataset Pin
Swiftain18-Mar-10 1:38
Swiftain18-Mar-10 1:38 
GeneralRe: Update Dataset Pin
sjs4u18-Mar-10 2:50
sjs4u18-Mar-10 2:50 
QuestionShow the id in 5 Digits Pin
GauravGupta21217-Mar-10 20:25
GauravGupta21217-Mar-10 20:25 
AnswerRe: Show the id in 5 Digits Pin
ali_reza_zareian17-Mar-10 20:36
ali_reza_zareian17-Mar-10 20:36 
GeneralRe: Show the id in 5 Digits Pin
GauravGupta21217-Mar-10 20:47
GauravGupta21217-Mar-10 20:47 
AnswerRe: Show the id in 5 Digits Pin
Xmen Real 17-Mar-10 20:41
professional Xmen Real 17-Mar-10 20:41 
AnswerRe: Show the id in 5 Digits Pin
#realJSOP17-Mar-10 21:55
mva#realJSOP17-Mar-10 21:55 
AnswerRe: Show the id in 5 Digits Pin
Luc Pattyn18-Mar-10 4:18
sitebuilderLuc Pattyn18-Mar-10 4:18 
QuestionException has been thrown by the target of an invocation Pin
Hari Om Prakash Sharma17-Mar-10 19:24
Hari Om Prakash Sharma17-Mar-10 19:24 
GeneralRe: Exception has been thrown by the target of an invocation Pin
AspDotNetDev17-Mar-10 19:58
protectorAspDotNetDev17-Mar-10 19:58 
AnswerRe: Exception has been thrown by the target of an invocation Pin
Luc Pattyn18-Mar-10 4:20
sitebuilderLuc Pattyn18-Mar-10 4:20 
GeneralRe: Exception has been thrown by the target of an invocation [SOLVED] Pin
Hari Om Prakash Sharma18-Mar-10 5:08
Hari Om Prakash Sharma18-Mar-10 5:08 
QuestionHow to Save bitmap as emf ImageFormat? Pin
Piyush Vaishnav17-Mar-10 19:13
Piyush Vaishnav17-Mar-10 19:13 

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.