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
{
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
No comments:
Post a Comment