static class Extensions
{
public static IList<T> Clone<T>(this IList<T> listToClone) where T: ICloneable
{
return listToClone.Select(item => (T)item.Clone()).ToList();
}
}
How do I clone a generic list in C#?
程序员文章站
2022-03-02 15:27:18
...