public void Invoke(object script, TaskArgument[] arguments) { var invocation = new TaskInvocation(script, this, reflected, arguments); if (step) { var alreadyInvoked = !invocations.Add(invocation); if (alreadyInvoked) { return; } } invocation.Invoke(); }
bool Equals(TaskInvocation other) { return(!values.Where((value, index) => value != other.values[index]).Any()); }
public void Invoke(object script, TaskArgument[] arguments) { var invocation = new TaskInvocation(script, this, reflected, arguments); if (step) { var alreadyInvoked = !invocations.Add(invocation); if (alreadyInvoked) return; } invocation.Invoke(); }
bool Equals(TaskInvocation other) { return !values.Where((value, index) => value != other.values[index]).Any(); }