List
List
Data in Input1 would look be - {1,2,3},{4,5,6},{8,9,10}
Data in Input 2 can be {11,12,13},{14,15,16}
The final combined result should be look like - {1,2,3,11,12,13}, {1,2,3,14,15,16},{4,5,6,11,12,13},{4,5,6,11,12,13},{8,9,10,11,12,13},{8,9,10,14,15,16}
How can I achieve that? Also is there any efficeint way to solve this, since I will have few hundreds of int array on both Input1 and Input 2 list.
VulpesPosted Dec 2, 2012, 10:48 AM
Deer ParkPosted Dec 2, 2012, 12:11 PM
Deer ParkPosted Dec 2, 2012, 12:11 PM
Chintan RathodPosted Dec 2, 2012, 3:04 AM
You can use "AddRange" method of list.
example,
firstList.AddRange(secondList);
Reference
----------
http://msdn.microsoft.com/en-us/library/z883w3dc.aspx
Thanks.