Download HR interview
Download CV samples
Download IT interview

How can we find Sequence of Items in two different array (same Type) in the same order using linq query?


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
<<Previous   Next>>

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

Write your comment - Share Knowledge and Experience

<<Previous   Next >> 
Interview questions
Home | Write for us and earn | My key skills | About us | Sitemap | Contact us