LINQ - How can we find Sequence of Items in two different array (same
Type) in the same order using linq query? posted by
Ashok Verma
How can we find Sequence of Items in two different array (same Type) in the
same order using linq query?
Public void MatchSequenceLinq()
{
Var wordsA = {"Rahul","ashok","sweta"};
Var wordsB = {"rahul","ashok","sweta"};
var match = wordsA.SequenceEqual(wordsB);
Console.WriteLine("The sequences match: {0}", match);
}
Output Result: True
|