i have a list of class of below type
public class Class1
{
    public string str1 { get; set; }
    public string str2 { get; set; }
    public int int1 { get; set; }
    public double dbl1{get;set;}
    public List<Class2> cls2 { get; set; }
    public List<string> str3 { get; set; }
}
in which Class 2 is also a user defined class like:
public class Class2
{
    public string str4{ get; set; }
    public Class3 cls2 { get; set; }
}
which Class3 is also another user defined class.
I need to copy a List<Class1> to another list of this type without any reference to the first list.
I used the below ways but they were unsuccessful.
- .CopyTo()to an- Class1[]array and then- .ToList()but this hold the references
- .ToList()but this hold the references
- I used the ways of serializable and deserializable but the class could not be serializable.
 
     
     
    