how to clear a list in c# code example
Example 1: c# clear list items
MyList.Clear();
Example 2: c# clear an array
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
Example 3: c# delete list
ListName.Clear();
MyList.Clear();
using System;
Array.Clear(arrayToClear, 0, arrayToClear.Length);
ListName.Clear();