Use Equal determines if two string arrays have the same elements in the same order : Equals : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » Equals »

 

Use Equal determines if two string arrays have the same elements in the same order








    
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class MainClass {
    public static void Main() {
        var wordsA = new string[] { "c", "ap", "b" };
        var wordsB = new string[] { "c", "ap", "b" };

        bool match = wordsA.Equals(wordsB);

        Console.WriteLine("The sequences match: {0}", match);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» Equals