Answers for "c# add multiple items to array"

C#
1

append 2 arrays c#

var z = new int[x.Length + y.Length];
x.CopyTo(z, 0);
y.CopyTo(z, x.Length);
Posted by: Guest on July-09-2020
0

c# add multiple items to list

List<Person> listofPersons = new List<Person>();
listofPersons.AddRange(new List<Person>
{
    new Person("John1", "Doe" ),
    new Person("John2", "Doe" ),
    new Person("John3", "Doe" ),
 });
Posted by: Guest on April-06-2021

Code answers related to "c# add multiple items to array"

C# Answers by Framework

Browse Popular Code Answers by Language