How do I create a single list of object pairs from two lists in C#?

后端 未结 6 860
野趣味
野趣味 2020-12-07 01:25

I have two lists of objects. List A and List B. I need to create List C which combines List A and List B into pairs. For example:

List A
object a1
object a2
         


        
6条回答
  •  一生所求
    2020-12-07 01:48

    I would suggest to use a List of tupples

    http://msdn.microsoft.com/en-us/library/system.tuple.aspx.

提交回复
热议问题