I normally know what "implicitly captured closure" means, however, today I came across the following situation:
public static void Foo (Bar bar, Action<int> a, Action<int> b, int c)
{
bar.RegisterHandler(x => a(c)); // Implicitly captured closure: b
bar.RegisterHandler(x => b(c)); // Implicitly captured closure: a
}
Why am I implicitly capturing the other action as well? If I comment either of the both lines, the other does not give me the warning. Anybody knows of what danger ReSharper is warning me?
Edit: ReSharper 8.0.1