using System;
using System.Collections.Generic;
namespace ConsoleApplication1
{
public delegate void mydelegate();
class Program
{
static void Main(string[] args)
{
List<int> list = new List<int>();
list.Add(1);
list.Add(3);
foreach (int n in list)
Console.WriteLine(n);
Console.WriteLine();
int index = list.IndexOf(3);
list.Insert(index, 2);
foreach (int n in list)
Console.WriteLine(n);
}
}
}
/*
run:
1
3
1
2
3
*/