reset array C# code example
Example 1: c# clear an array
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
Example 2: remove all array elements c#
Array.Clear(myArray, 0, myArray.Length);
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
Array.Clear(myArray, 0, myArray.Length);