Usually, when a method contains a lambda expression somewhere in it, if you edit that method, Visual Studio will say:
Modifying a 'method' which contains a lambda expression will prevent the debug session from continuing while Edit and Continue is enabled.
Is there a way to avoid this error?
In my case, I have a class whose constructor accepts an Action
.
Button(Texture2D t2d, Vector2 v2, Action onPress)
...
Button b = new Button(t2d, new Vector2(40, 60), () => { MainStatic.t = t; });
Additional information on this issue: