c# declare empty string array

102

c# initialize empty array -

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

c# empty array -

object[] emptyArray = new object[0]; 

Comments

Submit
0 Comments