How can I check if a value from an Array Contains any value from an other Array ?
For example:
string[] array1 = {"1726KB12","271","MB192"}
string[] array2 = {"KB","L1","C9"}
Those are the two arrays i'm using. I need to check if any value from array2 is contained in array1 (in this case, "KB" from array2 is contained in array1 but is not identical).
Is there a way to catch this?
Every other solutions that i could find only check if both values are identical.
SearchValueswill allow you to speed up this scenario: SearchValues object become better with .NET 9.