string[] stringArray = new string[] {};
using System;
Array.Clear(arr, 0, arr.Length);
datatype[] arr = new datatype[]{};
or
datatype[] arr = new datatype[0];
or
datatype[] array = {}
or
var a = Array.Empty<datatype>();
object[] emptyArray = new object[0];
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
var listOfStrings = new List<string>();
// do stuff...
string[] arrayOfStrings = listOfStrings.ToArray();
public List<int> something = new List<int>();
Array.Clear(arr, 0, arr.Length);
Array.Empty <int> ();