/// <summary> /// Equality for hConnections. /// Order of members does not matter. /// </summary> /// <param name="value"></param> /// <returns></returns> public override bool Equals(object value) { hConnection con = value as hConnection; return((con != null) && (members.Contains(con.members[0])) && (members.Contains(con.members[1])) && (type == con.type)); }
/// <summary> /// Add an hConnection to the member's list of connections /// </summary> /// <param name="connection"></param> public void AddConnection(hConnection connection) { this.connections.Add(connection); }
/// <summary> /// Add an hConnection to the member's list of connections /// </summary> /// <param name="connection"></param> internal void AddConnection(hConnection connection) { this.connections.Add(connection); }