Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# initialize empty array

datatype[] arr = new datatype[]{};
or
datatype[] arr = new datatype[0];
or
datatype[] array = {}
or
var a = Array.Empty<datatype>();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #initialize #empty #array
ADD COMMENT
Topic
Name
9+3 =