Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
C#
»
C#: Arrays and collections
»
C#: Arrays
Copying array in C#
Submitted by
obraztsov
on Tue, 09/27/2016 - 09:22
Forums:
C#: Arrays
int
[] numbers1 = { 1, 2, 3, 4, 5 };
int
[] numbers2 =
new
int
[5];
numbers1.CopyTo(numbers2, 0);
Log in
to post comments