Interviewer And Interviewee Guide

LINQ Interview Question:

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

Submitted by: Administrator
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);
}
Submitted by: Administrator

Read Online LINQ Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.