예제 #1
0
        /// <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));
        }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }