6
Answers

Map two different list into single list in C#

Photo of Mohsin

Mohsin

8y
14.3k
1
Map two different list into single list in C#

Answers (6)

2
Photo of Rafnas T P
141 13.4k 4.5m 8y
check this link below
 
http://stackoverflow.com/questions/23016768/merge-two-listobject-into-one-list-in-linq
1
Photo of Mohsin
NA 28 31.5k 8y
two different list means .. two different classes list and different properties but properties count same .. map first property to other list first property and so on.
1
Photo of Ashish Vishwakarma
369 4.4k 1.4m 8y
I didn't get exactly what you mean by Map, please elaborate.
If you want to Merge two Lists, use AddRange()
follow https://www.dotnetperls.com/list-addrange  for syntax
 
1
Photo of Prashant Kumar
214 8.8k 3.3m 8y
Hi,
 
Can we some more details about your query,  which type of List you want to merge:
 
Kindly refer below URL:
 
http://stackoverflow.com/questions/1191054/how-to-merge-a-list-of-lists-with-same-type-of-items-to-a-single-list-of-items 
 
http://stackoverflow.com/questions/38123540/how-to-map-two-different-lists-to-one-list
 
Thanks 
0
Photo of vayne nick
NA 40 7 6y
check this one...
 
http://csharp.net-informations.com/collection/list.htm
 
0
Photo of Joginder Banger
217 8.7k 1m 8y
Hi,
you query as per first view is incomplete, I think missing you something here. you mention that different class and different properties but count of records are some. am little bit confused what's you trying. can you explore here for better understanding what you trying. 
Clear everything and get right solution.