Click here to Skip to main content
       

C#

 
AnswerRe: c# PinmemberRoger Wright22-Aug-12 19:48 
AnswerRe: c# PinmvpAbhinav S22-Aug-12 20:21 
GeneralRe: c# PinmvpOriginalGriff22-Aug-12 20:25 
GeneralRe: c# PinmvpAbhinav S22-Aug-12 20:28 
AnswerOT PinmentorKeith Barrow23-Aug-12 3:04 
QuestionHow do you offload a Dictionary? PinmemberXarzu22-Aug-12 14:36 
AnswerRe: How do you offload a Dictionary? PinmemberWes Aday22-Aug-12 14:46 
AnswerRe: How do you offload a Dictionary? PinmvpNiladri_Biswas22-Aug-12 17: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? PinmvpOriginalGriff22-Aug-12 20:24 
AnswerRe: How do you offload a Dictionary? PinmvpAbhinav S22-Aug-12 20:29 
QuestionTaskFactory AutoResetEvent DeadLock on Window Service Pinmemberd87c22-Aug-12 14:14 
Questionnecesito un ejemplo que convierta documentos a imagen utilizando c# Pinmemberdavid_33322-Aug-12 8:54 
AnswerRe: necesito un ejemplo que convierta documentos a imagen utilizando c# PinmemberEddy Vluggen22-Aug-12 9:05 
GeneralRe: necesito un ejemplo que convierta documentos a imagen utilizando c# PinmvpOriginalGriff22-Aug-12 20:27 
GeneralRe: necesito un ejemplo que convierta documentos a imagen utilizando c# PinmvpRichard MacCutchan22-Aug-12 21:17 
GeneralRe: necesito un ejemplo que convierta documentos a imagen utilizando c# PinmvpOriginalGriff22-Aug-12 21:19 
QuestionHow to write to Structured file? PinmemberUbun2OS22-Aug-12 7:39 
AnswerRe: How to write to Structured file? PinmemberEddy Vluggen22-Aug-12 8:53 
QuestionC# 2010 working with xml Pinmembersc steinhayse22-Aug-12 3:57 
AnswerRe: C# 2010 working with xml PinmemberBobJanova22-Aug-12 4:32 
GeneralRe: C# 2010 working with xml Pinmembersc steinhayse22-Aug-12 5:57 
GeneralRe: C# 2010 working with xml PinmemberBobJanova22-Aug-12 6:17 
GeneralRe: C# 2010 working with xml Pinmembersc steinhayse22-Aug-12 16:37 
GeneralRe: C# 2010 working with xml PinmemberBobJanova22-Aug-12 23:44 
QuestionHow to avoid flickering in a user control in .Net Compact Framework/C# ? Pinmembertopksharma198221-Aug-12 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web04 | 2.8.140916.1 | Last Updated 19 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid