首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

list.findall方法应该如何写?

2012-03-14 
list.findall方法应该怎么写???lstPathNew lstPath.FindAll(Function( value as model)return value.id

list.findall方法应该怎么写???
lstPathNew = lstPath.FindAll(Function( value as model)return value.id=ID end function)
这么写报错,错误是:应为表达式
请问该怎么改?????

[解决办法]

VB.NET code
lstPathNew = lstPath.FindAll(AddressOf MyFind)private Function MyFind( value as model) as boolean  return value.id=ID end function 

热点排行