public virtual bool RemoveAllAdjacents() { bool removed = false; foreach (KeyValuePair <Side, Node> adj in Adjacents.ToList()) { if (adj.Value != null) { removed = true; RemoveAdjacent(adj.Key, adj.Value); } } return(removed); }
public override bool RemoveAllAdjacents() { bool removed = false; foreach (KeyValuePair <Side, Node> adj in Adjacents.ToList()) { if (adj.Value != null) { removed = true; RemoveAdjacent(adj.Key, adj.Value); } } ConnectedInputs.Clear(); return(removed); }