c# empty array

C#
object[] emptyArray = new object[0]; datatype[] arr = new datatype[]{};
or
datatype[] arr = new datatype[0];
or
datatype[] array = {}
or
var a = Array.Empty<datatype>();
Source

Also in C#: