List.Any(); How to get index of matched item?
I am comparing Listview items with Generic List items with List.Any Method
like this:
foreach (ListViewItem itemRow in lstviewAddsheets.Items)
{
if (InvalidSheets.Any(x => x != null && x.FilePath ==
itemRow.Tag.ToString()))
{
//Math found
}
}
Please tell how to get InvalidSheets list index which was matched with
itemRow.Tag.ToString().
No comments:
Post a Comment