IEnumerable and loops - C#