To check if values in array and list is same

Hi all,

I have one list of string called lstA and one array of string called arrA.

I want to check if values present in both is equal or not.

Eg1:
Inputs:
lstA has {“aa”, “bb”, “cc”}
arrA has {“aa”}

Output:
Then op must be false as “bb” and “cc” aren’t in arrA.

Eg 2:

Inputs:
lstA has {“aa”,”cc”}
arrA has {“aa”,”cc”}

Output:
Then op must be true

Can linq be used?

Any idea?

HI @Ray_Sha1

Check out the thread

Regards
Gokul

image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.