A lambda inside a class or struct cannot access the members of a type defined in the containing method. This is shown by compiling the code in "Steps to Reproduce".
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Operating System Language