linq -This sample uses EqualAll to see if two sequences match on all elements in the same order.


    Sub Main()

Dim wordsA() As String = {"cherry", "apple", "blueberry"}
Dim wordsB() As String = {"apple", "blueberry", "cherry"}

Dim match = wordsA.SequenceEqual(wordsB)

Console.WriteLine("The sequences match: " & match)

End Sub

Yorumlar