Answers for "how to initialize an array with all null values c#"

C#
0

c# initialize empty array

datatype[] arr = new datatype[]{};
or
datatype[] arr = new datatype[0];
or
datatype[] array = {}
or
var a = Array.Empty<datatype>();
Posted by: Guest on June-16-2020

Code answers related to "how to initialize an array with all null values c#"

C# Answers by Framework

Browse Popular Code Answers by Language