.NET Fiddle

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		Console.WriteLine("Hello World");
		
		var myArray = new int[] {};
		var mySecondArray = new int[5] {1,2,3,4,5};
		myArray = mySecondArray;
		
		Console.WriteLine(string.Join(",", myArray));
	}
}
;