create a dictionary using 2 lists using LINQ

Posted by VNarasimhaM on Stack Overflow See other posts from Stack Overflow or by VNarasimhaM
Published on 2010-03-12T17:33:46Z Indexed on 2010/03/12 17:37 UTC
Read the original article Hit count: 378

Filed under:
|

I am trying to create a dictionary from 2 lists where one list contains keys and one list contains values. I can do it using for loop but I am trying to find if there is a way of doing it using LINQ. Sample code will be helpfull. Thanks!!!!

© Stack Overflow or respective owner

Related posts about c#

Related posts about LINQ