Question:
How to use Linq to perform a full external connection on the two object lists, even if some objects in the list exist?
Explanation:
Internal connection: Elements with corresponding keys in the two lists are eliminated to exclude elements without corresponding elements.
Two lists A and B to be connected.
The key Selectkeya and Selectkeyb, specify which attribute application of the objects in A and B as the connection key.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
The optional default value DefaultA and DefaultB, if there is no corresponding element in another list, use these values.
The above is the detailed content of How to Perform a Full Outer Join on Two Lists Using LINQ?. For more information, please follow other related articles on the PHP Chinese website!