4 ms·
this probably isn't the place to start a chain on how to do this, but if you wrap the statement in the lambda in a {} block and explicitly return the expected v
by walljm 13y ago
this probably isn't the place to start a chain on how to do this, but if you wrap the statement in the lambda in a {} block and explicitly return the expected value, you can insert line breaks and set breakpoints.
i'm not familiar enough with the vocabulary to explain it perfectly, but i do it all the time.
example:
list.Find(o=> {
if (o.prop == "foo")
{ return true;} // visual studio will allow a breakpoint here
else
{ return false;}
});