I trying make if Arraylist all values contains in other arraylist (all values)
Arraylist one:
Name
Item
ArrayList two:
Item
Name
Count
Note: the lists are shuffled
I tried this:
foreach (string str1 in arraylistone)
{
if (arraylisttwo.Contains(str1))
{
//return true;
}
}
But it says true if contains someone element
List<string>. Don't useArrayListunless you enjoy making your life harder...