I have this code :
int[] g = new int[3] { 1, 2, 3 };
g.ToList().ForEach(f=>Console.Write(f));
For each item in the array , I want to execute an Action....
int[] is already implementing Ienumerable.
I would like to execute an Action without "ToList()"
is there any other solution ( with one line of code) to do it ( without toList? i.e using its IEnumerable characteristics )