Adding Multiple Elements of a list to another in C#
Adding Multiple Elements of a list to another in C#
I have some lists like this:
List A={1,2,3}
List B={10,20,30}
List C={100,200,300}
...
and I want something like this:
List ABC1={1,10,100}
List ABC2={2,20,200}
List ABC3={3,30,300}
How can I do this in C#? can anyone help me?
1 Answer
1
Use Union: A.Union(B).ToList();
A.Union(B).ToList();
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Are the lists stored in another list?
– Tim Schmelter
23 secs ago