var list = new List<string>() { // Assume some items in the list }; for (var i = 0; i < list.Count; i++) { var item = list[i]; list.Remove(item); i--; }
Simple alternative to List.Clear()
List.Clear()