Console.ForegroundColor = ConsoleColor.Red;
public string this[int index] { }
int[] array = { 1, 2, 3, 4, 5 }; foreach (var element in array) { Console.WriteLine(element + 1); } Console.WriteLine("####################"); var collection = array.Select(element => element + 1); Console.WriteLine(string.Join(Environment.NewLine, collection));