code:
public static class EnumerableExtensions
{ public static T Find<T>(this IEnumerable<T> enumerable, Predicate<T> match)
{ return enumerable.Find(match);
}
}调用:
ErpDic.Value.AsParallel().Find(x => x.code == code)
ErpDic是个 private Lazy<List<sys_dict_common>> ErpDic;
为什么这个 扩展方法find 进入了无限递归呢?不明白。
holdtom
不负相思意
智慧大石
随时随地看视频慕课网APP
相关分类