อันดับแรก กำหนดรายการ − List<int> myList = new List<int>(); myList.Add(45); myList.Add(77); ในการล้างรายการด้านบนนี้ ให้ใช้ Clear() − myList.Clear(); นี่คือรหัสที่สมบูรณ์ - ตัวอย่าง using System; using System.Collections.Generic; public class Demo { public static void Main