Linq SequenceEqual Operator

Akiii
Posted by Akiii under LINQ category on | Points: 40 | Views : 1721
SequenceEqual Operator is used to compare two sequences on all elements in the same order.

Suppose,


var l1 = new string[] { "A", "B", "C" };
var l2 = new string[] { "A", "B", "C" };

bool match = l1.SequenceEqual(l2);

Response.Write(match);


output:
True


Thanks and Regards
Akiii

Comments or Responses

Login to post response