B
Brian Pelton
I am not sure how to fix this problem I've stumbled into...
I have a list<> of an interface type. I need to pass that list to a
method that adds more objects to the list.
But, eventually, I need to get back to the original list<> object.
---
In other words; let's say I start with an List<> of 3 objects. I call a
method that adds 5 more objects to that List<>. I continue on with my
work. Once I'm done, I need to get back to my original list of 3 objects.
My first guess is I to use a copy of my List object when I call the
appender method. But, I'm not sure how you can copy a List<> object.
--Brian
I have a list<> of an interface type. I need to pass that list to a
method that adds more objects to the list.
But, eventually, I need to get back to the original list<> object.
---
In other words; let's say I start with an List<> of 3 objects. I call a
method that adds 5 more objects to that List<>. I continue on with my
work. Once I'm done, I need to get back to my original list of 3 objects.
My first guess is I to use a copy of my List object when I call the
appender method. But, I'm not sure how you can copy a List<> object.
--Brian