Recently I am surfing on net I found useful post for LINQ there is a Zip Operator is introduce in LINQ thread two list together
eg.
string[] codes = { "CAD","HRK","ILS", "JOD", "LTL"}; string[] states = { " Canadian Dollar", "Croatian Kuna", "Israeli Shekel", " Jordanian Dinar", "Latvian Lat" };
A single LINQ statement can stitch the two lists together
var CodesWithcurruncy = codes.Zip( states, (code, Currency) => code + ": " + Currency);
Output will be
CAD:Canadian Dollar HRK:Croatian Kuna ILS:Israeli Shekel JOD:Jordanian Dinar LTL:Latvian Lat
Thank You,
Published under: General Technology Tips · · · ·
Good tip....