List. How can I join them?

S

shapper

Hello,

I have two lists: List<Role> A and List<Role> B. Role is an
enumeration.

I need to update list A as follows:
- The elements in list A do not change;
- The elements that are in list B and do not exist in list A are added
to list A.

How can I do this?

Thanks,
Miguel
 
G

Göran Andersson

shapper said:
Hello,

I have two lists: List<Role> A and List<Role> B. Role is an
enumeration.

I need to update list A as follows:
- The elements in list A do not change;
- The elements that are in list B and do not exist in list A are added
to list A.

How can I do this?

Thanks,
Miguel

The answer is still the same as it was half an hour ago...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

List Join?? How can I do this? 1
Find Ints in List ... 4
List. Check items 3
List. Add, Remove. 1
Sring[] to List<MyEnumeration> 5
List to EntityCollection 0
Add item at start 5
Join 3

Top