如在一个List<DataBound>列表中找出某一项的位置用法如下
int i = 0;
Predicate<DataBound> FindTownIndex = delegate(DataBound item)
{
if (item.ID == “130600”)
{
return true;
}
else
{
return false;
}
};
i = listData.FindIndex(FindTownIndex);