Dim stringarray1 As String()
stringarray1 = {"hello","bye","bye"}
Dim stringarray2 As String()
stringarray2 = {"hello","hello","bye"}
Dim result1 As String()
result1 = stringarray1.Except(stringarray2)
Console.WriteLine(string.join(vbNewLine,result1))
' outputs nothing, but the desired output is "bye"
Dim result2 As String()
result2 = stringarray2.Except(stringarray1)
Console.WriteLine(string.join(vbNewLine,result2))
' outputs nothing, but the desired output is "hello"
Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>
Our community of experts have been thoroughly vetted for their expertise and industry experience.