且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#复杂列表问题

更新时间:1970-01-01 07:58:48

基于此很难给出答案:我怀疑你要做的是创建第三个列表,其中每个元素包含ListA中的值和ListB中的值 - 但是要做到这一点,你需要指定两个列表的链接,以便ListA中的正确元素与ListB中的正确元素一起使用。



您可能会发现这很有用: c# - 如何合并两个不同对象的列表? - Stack Overflow [ ^ ]

Hi!

I have 2 complex type lists, and i need create a 3. list, where the 1. prop is the 1. listelements, and the 2. prop is the 2. list elements, but I am stuck, looking for help.

Thx for answers!

What I have tried:

I don't know, how to start it.

It's difficult to give you an answer based on that: I suspect that what you want to do is create a third list where each element contains a value from ListA and a value from ListB - but to do that, you need to specify what "links" the two lists together so that the right element from ListA goes with the right element from ListB.

You might find this useful though: c# - How merge two lists of different objects? - Stack Overflow[^]