摘要:
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 阅读全文