C# 如何清空列表<;T>;?

C# 如何清空列表<;T>;?,c#,C#,我有一份清单: List<int> MyList = new List<int>(); List MyList=new List(); 我在其中添加了10个int值: for{i=1;i<10;i++} MyList.Add(1); {i=1;i

我有一份清单:

List<int> MyList = new List<int>();
List MyList=new List();
我在其中添加了10个int值:

for{i=1;i<10;i++}
    MyList.Add(1);
{i=1;i