public void RemovePrecondition(ActionKey key) { foreach (KeyValuePair <ActionKey, object> kvp in Precondition) { if (kvp.Key.Equals(key)) { _ = Precondition.Remove(kvp); } } }