public void RemoveWordConnection(Interfaces.WordConnectionBase iwc) { var toRemove = _connections.FirstOrDefault(x => x.Equals(iwc)); if (toRemove != null) { _connections.Remove(iwc); } }
public bool Equals(WordConnectionBase b) { if ((object)b == null) { return(false); } return((Language1 == b.Language1 && Language2 == b.Language2 && Word1 == b.Word1 && Word2 == b.Word2) || (Language2 == b.Language1 && Language1 == b.Language2 && Word2 == b.Word1 && Word1 == b.Word2)); }
public override bool Equals(object obj) { if (obj == null) { return(false); } WordConnectionBase b = obj as WordConnectionBase; if (b == null) { return(false); } return(Equals(b)); }
public void AddWordConnection(Interfaces.WordConnectionBase iwc) { _connections.Add(iwc); }