clear array in c# code example
Example 1: c# clear an array
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
Example 2: how to empty an array c#
Array.Clear(arr, 0, arr.Length);
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
Array.Clear(arr, 0, arr.Length);