I have a question here. Lets say I have these two classes
class Person
{
int person_id;
string name;
Address address;
}
class Address
{
int address_id;
string street;
}
and I have list of Person data in List<Person> people = new List<Person>();.
Now I want to copy all of the address in people to a new address list List<Address> addresses = new List<Address>();. How can I achieve this?