Csharp/C Sharp/LINQ/Equals — различия между версиями

Материал из .Net Framework эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 14:38, 26 мая 2010

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

<source lang="csharp"> 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);
   }

}

</source>