C#ArrayList.RemoveAt

Removes the element at the specified index of the List.

문법

list.RemoveAt(index)

예제

아래 값을 입력하면 예제에 즉시 반영됩니다.

var
list
new
List
RemoveAt
Console
WriteLine
string
var list = new List<int> { 10, 20, 30, 40 };
list.RemoveAt(1);
Console.WriteLine(string.Join(", ", list));   // 10, 30, 40