Click here to Skip to main content
12,698,292 members (23,123 online)
   

C#

 
AnswerRe: SerialPort open, but receive no response Pin
glennPattonWork22-Aug-12 23:28
memberglennPattonWork22-Aug-12 23:28 
GeneralRe: SerialPort open, but receive no response Pin
LionAM23-Aug-12 2:17
memberLionAM23-Aug-12 2:17 
GeneralRe: SerialPort open, but receive no response Pin
glennPattonWork23-Aug-12 2:33
memberglennPattonWork23-Aug-12 2:33 
GeneralRe: SerialPort open, but receive no response Pin
LionAM23-Aug-12 23:59
memberLionAM23-Aug-12 23:59 
GeneralRe: SerialPort open, but receive no response Pin
glennPattonWork24-Aug-12 0:28
memberglennPattonWork24-Aug-12 0:28 
Questionc# Pin
shailendra1315@gmail.com22-Aug-12 20:34
membershailendra1315@gmail.com22-Aug-12 20:34 
AnswerRe: c# Pin
Roger Wright22-Aug-12 20:48
memberRoger Wright22-Aug-12 20:48 
AnswerRe: c# Pin
Abhinav S22-Aug-12 21:21
mvpAbhinav S22-Aug-12 21:21 
GeneralRe: c# Pin
OriginalGriff22-Aug-12 21:25
mvpOriginalGriff22-Aug-12 21:25 
GeneralRe: c# Pin
Abhinav S22-Aug-12 21:28
mvpAbhinav S22-Aug-12 21:28 
AnswerOT Pin
Keith Barrow23-Aug-12 4:04
mentorKeith Barrow23-Aug-12 4:04 
QuestionHow do you offload a Dictionary? Pin
Xarzu22-Aug-12 15:36
memberXarzu22-Aug-12 15:36 
AnswerRe: How do you offload a Dictionary? Pin
Wes Aday22-Aug-12 15:46
memberWes Aday22-Aug-12 15:46 
AnswerRe: How do you offload a Dictionary? Pin
Niladri_Biswas22-Aug-12 18:36
mvpNiladri_Biswas22-Aug-12 18:36 
Try this
Dictionary<object, object> dummyDictionary = new Dictionary<object, object>
            {
                {"India","Delhi"},
                {"USA","WashingtonDC"},
                {"Bangaladesh","Dhaka"},
                {"Pakistan","Karachi"}
            };

//Foreach loop construct

foreach (KeyValuePair<object, object> kvp in dummyDictionary)
{
  Console.WriteLine(string.Format("Key = {0}  Value = {1}", kvp.Key, kvp.Value));
}

//using Linq and Foreach Extension method

var result =
             (from kvp in dummyDictionary
              select new
              {
                Key = kvp.Key
                ,
                 Value = kvp.Value
              });
result.ToList().ForEach(kvp => Console.WriteLine(string.Format("Key = {0}  Value = {1}", kvp.Key, kvp.Value)));

Console.ReadKey();

Niladri Biswas
(Code Project MVP 2012)

AnswerRe: How do you offload a Dictionary? Pin
OriginalGriff22-Aug-12 21:24
mvpOriginalGriff22-Aug-12 21:24 
AnswerRe: How do you offload a Dictionary? Pin
Abhinav S22-Aug-12 21:29
mvpAbhinav S22-Aug-12 21:29 
QuestionTaskFactory AutoResetEvent DeadLock on Window Service Pin
d87c22-Aug-12 15:14
memberd87c22-Aug-12 15:14 
Questionnecesito un ejemplo que convierta documentos a imagen utilizando c# Pin
david_33322-Aug-12 9:54
memberdavid_33322-Aug-12 9:54 
AnswerRe: necesito un ejemplo que convierta documentos a imagen utilizando c# Pin
Eddy Vluggen22-Aug-12 10:05
memberEddy Vluggen22-Aug-12 10:05 
GeneralRe: necesito un ejemplo que convierta documentos a imagen utilizando c# Pin
OriginalGriff22-Aug-12 21:27
mvpOriginalGriff22-Aug-12 21:27 
GeneralRe: necesito un ejemplo que convierta documentos a imagen utilizando c# Pin
Richard MacCutchan22-Aug-12 22:17
mvpRichard MacCutchan22-Aug-12 22:17 
GeneralRe: necesito un ejemplo que convierta documentos a imagen utilizando c# Pin
OriginalGriff22-Aug-12 22:19
mvpOriginalGriff22-Aug-12 22:19 
QuestionHow to write to Structured file? Pin
Ubun2OS22-Aug-12 8:39
memberUbun2OS22-Aug-12 8:39 
AnswerRe: How to write to Structured file? Pin
Eddy Vluggen22-Aug-12 9:53
memberEddy Vluggen22-Aug-12 9:53 
QuestionC# 2010 working with xml Pin
sc steinhayse22-Aug-12 4:57
membersc steinhayse22-Aug-12 4:57 
AnswerRe: C# 2010 working with xml Pin
BobJanova22-Aug-12 5:32
memberBobJanova22-Aug-12 5:32 
GeneralRe: C# 2010 working with xml Pin
sc steinhayse22-Aug-12 6:57
membersc steinhayse22-Aug-12 6:57 
GeneralRe: C# 2010 working with xml Pin
BobJanova22-Aug-12 7:17
memberBobJanova22-Aug-12 7:17 
GeneralRe: C# 2010 working with xml Pin
sc steinhayse22-Aug-12 17:37
membersc steinhayse22-Aug-12 17:37 
GeneralRe: C# 2010 working with xml Pin
BobJanova23-Aug-12 0:44
memberBobJanova23-Aug-12 0:44 
QuestionHow to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
topksharma198221-Aug-12 22:27
membertopksharma198221-Aug-12 22:27 
AnswerRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
BobJanova22-Aug-12 1:43
memberBobJanova22-Aug-12 1:43 
GeneralRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
topksharma198222-Aug-12 2:16
membertopksharma198222-Aug-12 2:16 
GeneralRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
BobJanova22-Aug-12 3:10
memberBobJanova22-Aug-12 3:10 
AnswerRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
Pete O'Hanlon22-Aug-12 2:27
protectorPete O'Hanlon22-Aug-12 2:27 
GeneralRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
topksharma198223-Aug-12 11:16
membertopksharma198223-Aug-12 11:16 
QuestionRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
Eddy Vluggen22-Aug-12 4:11
memberEddy Vluggen22-Aug-12 4:11 
AnswerRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
topksharma198223-Aug-12 11:16
membertopksharma198223-Aug-12 11:16 
GeneralRe: How to avoid flickering in a user control in .Net Compact Framework/C# ? Pin
Eddy Vluggen23-Aug-12 11:31
memberEddy Vluggen23-Aug-12 11:31 
QuestionEPPLUS Excel Pin
Member 916988721-Aug-12 21:48
memberMember 916988721-Aug-12 21:48 
AnswerRe: EPPLUS Excel Pin
Pete O'Hanlon21-Aug-12 22:01
protectorPete O'Hanlon21-Aug-12 22:01 
QuestionEPPLUS Excel Pin
Member 916988721-Aug-12 15:37
memberMember 916988721-Aug-12 15:37 
QuestionUsing IList.Contains&lt;&gt; to search nested members? Pin
JoeRip21-Aug-12 15:25
memberJoeRip21-Aug-12 15:25 
SuggestionRe: Using IList.Contains<> to search nested members? Pin
Matt T Heffron21-Aug-12 16:11
memberMatt T Heffron21-Aug-12 16:11 
GeneralRe: Using IList.Contains to search nested members? Pin
JoeRip21-Aug-12 16:15
memberJoeRip21-Aug-12 16:15 
GeneralRe: Using IList.Contains to search nested members? Pin
Matt T Heffron21-Aug-12 16:27
memberMatt T Heffron21-Aug-12 16:27 
AnswerRe: Using IList.Contains<> to search nested members? Pin
BobJanova22-Aug-12 1:41
memberBobJanova22-Aug-12 1:41 
Questionplz help with ghe following.... Pin
joy madalane21-Aug-12 13:59
memberjoy madalane21-Aug-12 13:59 
AnswerRe: plz help with ghe following.... Pin
Wes Aday21-Aug-12 16:49
memberWes Aday21-Aug-12 16:49 
JokeRe: plz help with ghe following.... Pin
Mycroft Holmes21-Aug-12 21:07
memberMycroft Holmes21-Aug-12 21:07 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 21 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid