list.addrange in c#
using System;
using System.Collections.Generic;
class Demo {
static void Main() {
List<int> list = new List<int>();
list.Add(100);
list.Add(200);
list.Add(300);
list.Add(400);
// array of 4 elements
int[] arr = new int[4];
arr[0] = 500;
arr[1] = 600;
arr[2] = 700;
arr[3] = 800;
list.AddRange(arr);
foreach (int val in list) {
Console.WriteLine(val);
}
}
}
Also in C#:
- unity left mouse button
- nunit return parameter
- c# split large file into chunks
- bool toggle unity c#
- c# object clone
- c# static meaning
- math class C# exponents
- list.addrange in c#
- Movement 2d unity
- unity check when clicked on object
- how to close a form c#
- take screenshot in c#
- how to compare datetime in c#
- ecs get specific entities with component
- how to redirect to extern page in .net core
- internal c#
- c# unhandled exception in thread
- how do i foreach c#
- asp.net core allow all origins
- kotlin random number
- how to move clipping planes C# in unity
- c# join string array
- c# new thread
- unity inspector header attribute