Answers for "how to make an empty array in 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
1

how to empty an array c#

Array.Clear(arr, 0, arr.Length);
Posted by: Guest on February-02-2021

Code answers related to "how to make an empty array in c #"

C# Answers by Framework

Browse Popular Code Answers by Language