How TO Add Data TO List Of Single Object
public class Student
{
public int StudentId{get;set;}
public string StudentName{get;set;}
public Address Address{get;set;}
}
public class Address
{
public int AddressId{get;set;}
public string DoorNo{get;set;}
public string StreetName{get;set;}
public string City{get;set;}
public string Country{get;set;}
}
Now, I Have List<Student>
List<Student> student=new List<Student>();
student.AddRange(student1);
// As student1 is also a List
Then How To Add Address along with Add method
student.AddRange(student1.Address);
//As student1 is also a list How can we add List Without using foreach To exact List Object