Is it possible to set a breakpoint in a method chain in VS, and if so how?

Given the code

    [Test]
    public void Test1()
    {
        var a = new A();
        a
            .Method1()
            .Method2();
    }

is it possible to set a breakpoint so that execution pauses after Method1() has executed, but before Method2 without going to the definition of Method2 and putting a breakpoint there? When I do it, the breakpoint appears at the 'a'.

5
задан mcintyre321 10 May 2011 в 08:58
поделиться