List<int> idata =new List<int> (){1,2,3,4,5,6};

foreach (var dt in idata)
{
dt = 0;
}
dt=0が代入できない。 idata[0]=0;は代入できる。これはどう考えたらいいんだ?