How to skip the function with lambda code inside?
问题 Consider the fragment below: [DebuggerStepThrough] private A GetA(string b) { return this.aCollection.FirstOrDefault(a => a.b == b); } If I use F11 debugger doesn't skip the function instead it stops at a.b == b . Is there any way to jump over this function rather than using F10? 回答1: I can see why it happens but don't have a way to get around it. Perhaps someone can build on this. The lambda expression gets compiled into an Anonymous Method. I see: Program.GetA.AnonymousMethod__0(Test a)