Answers for "c# 9 clone list of objects"

C#
0

list clone - C#

static class Extensions
{
    public static IList<T> Clone<T>(this IList<T> listToClone) where T: ICloneable
    {
        return listToClone.Select(item => (T)item.Clone()).ToList();
    }
}
Posted by: Guest on June-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language