Answers for "assign a list to another in c# without a loop"

C#
0

assign a list to another in c# without a loop

List<Int32> copy = new List<Int32>(original);
or if you're using C# 3 and .NET 3.5, with Linq, you can do this:
List<Int32> copy = original.ToList();
Posted by: Guest on December-06-2021

Code answers related to "assign a list to another in c# without a loop"

C# Answers by Framework

Browse Popular Code Answers by Language