摘要:
public static IEnumerable<T> ForEach<T>(this IEnumerable<T> source, Action<T> action) where T : class,new() { foreach (var item in source) { action(item); yield return item; } } public staticvoid ForEach<T>(this IEnumerable<T> source, Action<T> action) where 阅读全文
posted @ 2012-09-11 11:28
kevinzw
阅读(715)
评论(0)
推荐(0)