Declare an Empty Array

Use the “new” Keyword


The Array Initializer Syntax

var myArray = new string[0];


Use an Empty String Literal

var myArray = new string[] { };

or

string[] myArray = { };



Use the Enumerable Class


Use the Empty Method

var myArray = Enumerable.Empty<string>().ToArray();


Use the Repeat Method

var myArray = Enumerable.Repeat("", 0).ToArray();

or

var myArray = Enumerable.Repeat(string.Empty, 0).ToArray();



Use the Array Class


var myArray = Array.Empty<string>();