public void RemoveTask(UITask task) { int index = taskStatusPairs.FindIndex(task, (t, item) => item == t.task); if (index != -1) { taskStatusPairs.RemoveAt(index); } }
public void RemoveTask(UITask task) { int index = taskStatusPairs.FindIndex(task, (t, item) => item == t.task); if (index != -1) { taskStatusPairs.RemoveAt(index); } }