G
Guest
I have three Arraylists that hold strings corresponding to addresses of an
e-mail list:
ArrayList masterList
ArrayList optInToMasterList
ArrayList optOutFromMasterList
I want to know the easiest way to add all of the +contents+ of one arraylist
to another.
masterList.CopyTo (optInToMasterList) does not have the intended effect: I
end up with an array nested in an array, which is quite logical, but it
isn't what I want.
optInToMasterList.Remove(optOutFromMasterList) does not seem to work either.
I'm sure I could figure out how to .Add and .Remove what I want to using
looping structures, but I would be happiest if there's already an inbuilt
method in the Framework to help me out.
Can you help?
Thank you,
-KF
e-mail list:
ArrayList masterList
ArrayList optInToMasterList
ArrayList optOutFromMasterList
I want to know the easiest way to add all of the +contents+ of one arraylist
to another.
masterList.CopyTo (optInToMasterList) does not have the intended effect: I
end up with an array nested in an array, which is quite logical, but it
isn't what I want.
optInToMasterList.Remove(optOutFromMasterList) does not seem to work either.
I'm sure I could figure out how to .Add and .Remove what I want to using
looping structures, but I would be happiest if there's already an inbuilt
method in the Framework to help me out.
Can you help?
Thank you,
-KF