Foreach loop to access array values using LINQ query

here i have written foreach loop to access this array values.



            var arrayval = new int[] {435,3423,23423,5654,2423,45 };

          

            // uses LINQ query

Linq query returns the collection which is used foreach loop.

            foreach(var val in from f in arrayval select f)

            {

                MessageBox.Show(val.ToString());

            }