SequenceEqual Operator : SequenceEqual « 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 = {"G", "H", "a", "H", "over", "Jack"};

        bool eq = presidents.SequenceEqual(presidents);
        Console.WriteLine(eq);

    }
}








22.65.SequenceEqual
22.65.1.SequenceEqual Operator
22.65.2.SequenceEqual Operator with string array
22.65.3.SequenceEqual Operator with Take and Count
22.65.4.SequenceEqual Operator with Take, Concat and Skip