S
StudiousStudent
Guest
I'm new to c#.
My question is that how can I move one object from my List<T> to another. The main list can be seen below.
static List<Car> Cars = new List<Car>();
I have a list of cars and my intention is to sell one of the cars.
Car sell = Cars.Find(cr => cr.SecurityCode == index);
I'm using the code above to find the object using the SecurityCode of the object.
I want to remove this from the Cars list and then place it on a second List<Sell>. How would I do this?
Umar Arif
Continue reading...
My question is that how can I move one object from my List<T> to another. The main list can be seen below.
static List<Car> Cars = new List<Car>();
I have a list of cars and my intention is to sell one of the cars.
Car sell = Cars.Find(cr => cr.SecurityCode == index);
I'm using the code above to find the object using the SecurityCode of the object.
I want to remove this from the Cars list and then place it on a second List<Sell>. How would I do this?
Umar Arif
Continue reading...