2021年4月7日星期三

compare two arrays return false or true [closed]

I am trying to compare two arrays :

arr1 = ["foo", "bar", "baz"]  arr2 = ["cat"]  Returns false    arr1 = ["foo", "bar", "baz"]  arr2 = ["bar", "foo"]  Returns true    arr1 = ["foo", "bar", "baz"]  arr2 = ["bar", "foo", "pea"]  Returns false  

how can I do this using foreach using C#?

https://stackoverflow.com/questions/66995952/compare-two-arrays-return-false-or-true April 08, 2021 at 08:52AM

没有评论:

发表评论