linq Skip

Linq Skip

public static void Skip()
        {
            int[] numbers = { 5, 4, 1, 3, 9, 8, 6, 7, 2, 0 };

            var allButFirst4Numbers = numbers.Skip(4);

            Console.WriteLine("All but first 4 numbers:");

            foreach (var n in allButFirst4Numbers)
            {
                Console.WriteLine("{0}", n);
            }
        }
Output
linq Skip

linq Skip linq Skip Reviewed by Bhaumik Patel on 7:41 PM Rating: 5