ReSharper says "Possible multiple enumeration of IEnumerable" on this code:
public static IEnumerable<T> Each<T>(this IEnumerable<T> @this, Action<T> action)
{
foreach (var i in @this)
action(i);
return @this;
}
But I just return @this
, I don't do anything else with it... is it warning me of possibility for additional enumeration once the function returns, or I'm missing something here ?