I have a generic list of objects in C#, and wish to clone the list. The items within the list are cloneable, but there doesn\'t seem to be an option to do list.Clone()
public class CloneableList : List, ICloneable where T : ICloneable
{
public object Clone()
{
var clone = new List();
ForEach(item => clone.Add((T)item.Clone()));
return clone;
}
}