Linq Join between Lists<object> | Sololearn: Learn to code for FREE!
0

Linq Join between Lists<object>

How do I make a join using linq between two lists of objects A and B to obtain a single list of type A?

11th Sep 2020, 11:09 PM
Arnaldo B. Basterretche
Arnaldo B. Basterretche - avatar
3 ответов
+ 1
You can check the C# documentation pages. It has a very detailed example about various joins between List<Category> and List<Product> that should be an excellent reference for you. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/join-clause If it is not helpful, then please post your code, and give a little more context, what you are trying to achieve.
12th Sep 2020, 7:25 AM
Tibor Santa
Tibor Santa - avatar
+ 1
Thanks Tibor. I'll check the Microsoft documentation. If it is not helpful I'll post my code 👌🏻
12th Sep 2020, 9:49 AM
Arnaldo B. Basterretche
Arnaldo B. Basterretche - avatar
+ 1
I was finally able to solve the join between two lists of objects. Thank you Tibor Santa, thats link was useful. And thanks to all for leaving your opinions!
15th Sep 2020, 3:34 AM
Arnaldo B. Basterretche
Arnaldo B. Basterretche - avatar