Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
Questionhow to convert list to dictionary Pin
hotthoughtguy31-Jul-09 3:55
hotthoughtguy31-Jul-09 3:55 
AnswerRe: how to convert list to dictionary Pin
Henry Minute31-Jul-09 4:08
Henry Minute31-Jul-09 4:08 
GeneralRe: how to convert list to dictionary Pin
hotthoughtguy31-Jul-09 4:12
hotthoughtguy31-Jul-09 4:12 
GeneralRe: how to convert list to dictionary Pin
hotthoughtguy31-Jul-09 4:14
hotthoughtguy31-Jul-09 4:14 
GeneralRe: how to convert list to dictionary [modified] Pin
Henry Minute31-Jul-09 5:06
Henry Minute31-Jul-09 5:06 
GeneralRe: how to convert list to dictionary Pin
Luc Pattyn31-Jul-09 9:18
sitebuilderLuc Pattyn31-Jul-09 9:18 
GeneralRe: how to convert list to dictionary Pin
Henry Minute31-Jul-09 9:22
Henry Minute31-Jul-09 9:22 
GeneralRe: how to convert list to dictionary Pin
Luc Pattyn31-Jul-09 10:01
sitebuilderLuc Pattyn31-Jul-09 10:01 
as Dan points out below, there is a hidden loop in your magic, and as you said there is a visible one you don't need, so your solution actually contains two loops, that's way too much.

FWIW: The only way I see without loops is with recursion OMG | :OMG:

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: how to convert list to dictionary Pin
Henry Minute31-Jul-09 10:11
Henry Minute31-Jul-09 10:11 
GeneralRe: how to convert list to dictionary Pin
Luc Pattyn31-Jul-09 10:29
sitebuilderLuc Pattyn31-Jul-09 10:29 
GeneralRe: how to convert list to dictionary Pin
Dan Neely31-Jul-09 9:26
Dan Neely31-Jul-09 9:26 
AnswerRe: how to convert list to dictionary Pin
Super Lloyd31-Jul-09 4:18
Super Lloyd31-Jul-09 4:18 
GeneralRe: how to convert list to dictionary Pin
hotthoughtguy31-Jul-09 4:28
hotthoughtguy31-Jul-09 4:28 
AnswerRe: how to convert list to dictionary Pin
0x3c031-Jul-09 4:38
0x3c031-Jul-09 4:38 
GeneralRe: how to convert list to dictionary Pin
hotthoughtguy31-Jul-09 4:44
hotthoughtguy31-Jul-09 4:44 
AnswerRe: how to convert list to dictionary Pin
Dave Kreskowiak31-Jul-09 5:05
mveDave Kreskowiak31-Jul-09 5:05 
QuestionProgrammatically updating application properties or help creating my own xml file please. Pin
JollyMansArt31-Jul-09 2:51
JollyMansArt31-Jul-09 2:51 
AnswerRe: Programmatically updating application properties or help creating my own xml file please. Pin
Super Lloyd31-Jul-09 2:55
Super Lloyd31-Jul-09 2:55 
GeneralRe: Programmatically updating application properties or help creating my own xml file please. Pin
Henry Minute31-Jul-09 3:57
Henry Minute31-Jul-09 3:57 
GeneralRe: Programmatically updating application properties or help creating my own xml file please. Pin
Super Lloyd31-Jul-09 4:03
Super Lloyd31-Jul-09 4:03 
JokeRe: Programmatically updating application properties or help creating my own xml file please. Pin
JollyMansArt1-Aug-09 2:33
JollyMansArt1-Aug-09 2:33 
GeneralRe: Programmatically updating application properties or help creating my own xml file please. Pin
Super Lloyd1-Aug-09 16:53
Super Lloyd1-Aug-09 16:53 
Questionnot able to view the form controls when thread is running [modified] Pin
Vivek Vijayan31-Jul-09 2:37
Vivek Vijayan31-Jul-09 2:37 
AnswerRe: not able to view the form controls when thread is running Pin
stancrm31-Jul-09 3:30
stancrm31-Jul-09 3:30 
QuestionHow to increase Web Service performance ? Pin
hdv21231-Jul-09 2:35
hdv21231-Jul-09 2:35 

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.