Delegates and variables scope
问题 I have the following code: public void SetMove(Position3D pos, float time, float linearity, bool relative) { ExecuteOnActiveClients(delegate(NeuroClient client) { client.Engine.GetProcAnimation(name).SetMove(pos, time, linearity, relative); }, true, true); } Where ExecuteOnActiveClients pushes the delegate in a queue, consumed asynchronously, and has the following signature: void ExecuteOnActiveClients(ClientDelegate action, Boolean parallel, Boolean wait, Boolean lockClient) I have a lot of