L
liranppo
Guest
hi all,
i have 2 Lists.
the first List has item with address, the second List has List of Addresses that should not be displayed.
i added a condition that check if addresses is the same, but if the forbidden addresses has more than one item , the condition was not met.
what can i do?
foreach (var item in paymentsList)
{
foreach (string address in HidePlaces)
{
if (!item.Entity_Addresses.Contains(address))
{
//show item
}
}
Continue reading...
i have 2 Lists.
the first List has item with address, the second List has List of Addresses that should not be displayed.
i added a condition that check if addresses is the same, but if the forbidden addresses has more than one item , the condition was not met.
what can i do?
foreach (var item in paymentsList)
{
foreach (string address in HidePlaces)
{
if (!item.Entity_Addresses.Contains(address))
{
//show item
}
}
Continue reading...