Basic C# code to clear the List

Amatya
Posted by Amatya under C# category on | Points: 40 | Views : 560
Basic C# code to clear the List
var dnfLst_1 = new List<int>() { 10 20 30 40};
dnfLst_1.Clear();



Result
dnfLst_1 empty

Comments or Responses

Login to post response