SkipWhile Prototype : SkipWhile « LINQ « C# / CSharp Tutorial






using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class MainClass {
    public static void Main() {

        string[] presidents = {"Ant", "arding", "arrison", "ayes", "Hoover", "ackson"};

        IEnumerable<string> items = presidents.SkipWhile(s => s.StartsWith("A"));

        foreach (string item in items)
            Console.WriteLine(item);
    }
}








22.69.SkipWhile
22.69.1.Use SkipWhile with index
22.69.2.SkipWhile with condition
22.69.3.SkipWhile with index
22.69.4.SkipWhile Prototype
22.69.5.Second SkipWhile Prototype