i am trying to merge two list as below
Let list 1 contains id,name,age and list two contains int,varchar,varchar
My final out put must be id int,name varchar,age varchar
I am tried with out using linq or lamda expression
but i need this execution through it.
My answer assumes that both lists contain
strings, that the number of items is the same in both lists and that they are already correctly ordered.Alternatively, you can use
Enumerable.Zip:Sample input:
Output: