My code is as below, using this code is to combine 2 lists together. and replace its value from one to another.
(from L1 in List1 join L2 in List2 on L1.itemID equals L2.itemID select L1.itemName= L2.itemName).ToArray();
The code above works fine, but only to select one attribute, which is itemName, how should I write the code if I want to select more than one value,
eg
(from L1 in List1 join L2 in List2 on L1.itemID equals L2.itemID select {L1.itemName= L2.itemName , L1.ItemQuantity = L2.Quatity}).ToArray();
source share